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)
commit69e07c4adb8669fd77f3b59abdb436aca9f1bee9
tree3cb9d1d58028066defca897d75076f7b1d1d6bfd
parentf4560ffe8cec1361b1021d81aca6a4173f8e7c87
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