block: call rq_qos_exit() after queue is frozen
authorMing Lei <ming.lei@redhat.com>
Wed, 24 Oct 2018 13:18:09 +0000 (21:18 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 31 Oct 2018 14:40:36 +0000 (08:40 -0600)
commitc57cdf7a9e51d97a43e29b8f4a04157875104000
tree4b957413d55cca86e87293647d2a1d889cb02261
parent698b53b3119c45a59eef10b516d780b3e9a5402d
block: call rq_qos_exit() after queue is frozen

rq_qos_exit() removes the current q->rq_qos, this action has to be
done after queue is frozen, otherwise the IO queue path may never
be waken up, then IO hang is caused.

So fixes this issue by moving rq_qos_exit() after queue is frozen.

Cc: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-sysfs.c