]> 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)
commit24df51637d5653e07d7535d3be32690c772b16a5
tree4b957413d55cca86e87293647d2a1d889cb02261
parentf6e25e0524ceded2de2a15aaa7245287c3f65787
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