]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit638dc80f7066e38d5157f0ccab82e40e1d8e5af2
tree4b957413d55cca86e87293647d2a1d889cb02261
parentaeb7fbd2dc5320e3f8be2c1c2f29e32ad5fd061a
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