diff options
author | Ming Lei <[email protected]> | 2016-02-12 15:27:00 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2016-02-14 15:35:14 -0700 |
commit | 66841672161efb9e3be4a1dbd9755020bb1d86b7 (patch) | |
tree | 878b571be06833c5b407d7eafe2e336e4acad7e9 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | d5df731ab804e0d917f44099bfeb88a5f1488a3d (diff) |
blk-mq: mark request queue as mq asap
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 <[email protected]>
Reported-by: Sasha Levin <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Fixes: 868f2f0b720 ("blk-mq: dynamic h/w context count")
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions