]> www.infradead.org Git - users/jedix/linux-maple.git/commit
blk-mq: mark request queue as mq asap
authorMing Lei <tom.leiming@gmail.com>
Fri, 12 Feb 2016 07:27:00 +0000 (15:27 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 15 Aug 2016 05:21:17 +0000 (22:21 -0700)
commit61330da22e8574967fe602706773387456ea070c
tree38fc41d9b731a652280d8bc45f1fe3f5835707e6
parent7ce692cfeccc8da1a19dc35c49a73f2487bbe942
blk-mq: mark request queue as mq asap

Orabug: 24454933

Currently q->mq_ops is used widely to decide if the queue
is mq or not, so we should set the 'flag' asap so that both
block core and drivers can get the correct mq info.

For example, commit 868f2f0b720(blk-mq: dynamic h/w context count)
moves the hctx's initialization before setting q->mq_ops in
blk_mq_init_allocated_queue(), then cause blk_alloc_flush_queue()
to think the queue is non-mq and don't allocate command size
for the per-hctx flush rq.

This patches should fix the problem reported by Sasha.

Cc: Keith Busch <keith.busch@intel.com>
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Fixes: 868f2f0b720 ("blk-mq: dynamic h/w context count")
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 66841672161efb9e3be4a1dbd9755020bb1d86b7)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
block/blk-mq.c