blk-mq: really fix plug list flushing for nomerge queues
authorOmar Sandoval <osandov@fb.com>
Thu, 2 Jun 2016 05:18:48 +0000 (22:18 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 2 Jun 2016 17:47:32 +0000 (11:47 -0600)
commit87c279e613f848c691111b29d49de8df3f4f56da
treee703f929d5b33f435b393ffd4bc55623613e5254
parent62a584fe05eef1f80ed49a286a29328f1a224fb9
blk-mq: really fix plug list flushing for nomerge queues

Commit 0809e3ac6231 ("block: fix plug list flushing for nomerge queues")
updated blk_mq_make_request() to set request_count even when
blk_queue_nomerges() returns true. However, blk_mq_make_request() only
does limited plugging and doesn't use request_count;
blk_sq_make_request() is the one that should have been fixed. Do that
and get rid of the unnecessary work in the mq version.

Fixes: 0809e3ac6231 ("block: fix plug list flushing for nomerge queues")
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c