]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: update comments on blk_mq_quiesce_queue()
authorMing Lei <ming.lei@redhat.com>
Tue, 6 Jun 2017 15:22:07 +0000 (23:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Jun 2017 20:24:48 +0000 (14:24 -0600)
commitef8a3725aad8e819d8be11b589e9e80c64186d59
tree3cb9d1d58028066defca897d75076f7b1d1d6bfd
parent00a58a0a996abdd204626b0b0eb99c49083bf50e
blk-mq: update comments on blk_mq_quiesce_queue()

Actually what we want to get from blk_mq_quiesce_queue()
isn't only to wait for completion of all ongoing .queue_rq().

In the typical context of canceling requests, we need to
make sure that the following is done in the dispatch path
before starting to cancel requests:

- failed dispatched request is finished
- busy dispatched request is requeued, and the STARTED
flag is cleared

So update comment to keep code, doc and our expection consistent.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c