]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't call blk_mq_quiesce_queue() after queue is frozen
authorMing Lei <ming.lei@redhat.com>
Mon, 1 May 2017 23:28:02 +0000 (07:28 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 2 May 2017 17:33:08 +0000 (11:33 -0600)
commitc1e7da75781a20c2792a362166c558a0d821aedf
tree931f0857f3019dedc0282ceeb036af274f42b77e
parent2c45874d28eca8e6d1a4e1259342de3592afd505
block: don't call blk_mq_quiesce_queue() after queue is frozen

After queue is frozen, no request in this queue can be in use at all, so
there can't be any .queue_rq() running on this queue.  It isn't
necessary to call blk_mq_quiesce_queue() any more, so remove it in both
elevator_switch_mq() and blk_mq_update_nr_requests().

Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Fixed up the description a bit.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
block/elevator.c