blk-mq: mark ctx as pending at batch in flush plug path
authorMing Lei <ming.lei@canonical.com>
Tue, 20 Oct 2015 15:13:57 +0000 (23:13 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 21:00:58 +0000 (15:00 -0600)
commitcfd0c552a8272d691691f40073654d775836e23a
tree8c5ee7e38512bde8df889e70b17e855b5d96faf9
parent676d06077f964f06af52c19e59f0409a8880612f
blk-mq: mark ctx as pending at batch in flush plug path

Most of times, flush plug should be the hottest I/O path,
so mark ctx as pending after all requests in the list are
inserted.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c