diff options
author | Ming Lei <ming.lei@redhat.com> | 2018-12-17 18:44:05 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-17 21:19:54 +0300 |
commit | c16d6b5a9f47d0e581882269fca1d73be60208b2 (patch) | |
tree | 778a7ca836078f6cca15630f25b0d652320f5cb8 /block/blk-iolatency.c | |
parent | 7211aef86f79583e59b88a0aba0bc830566f7e8e (diff) | |
download | linux-c16d6b5a9f47d0e581882269fca1d73be60208b2.tar.xz |
blk-mq: fix dispatch from sw queue
When a request is added to rq list of sw queue(ctx), the rq may be from
a different type of hctx, especially after multi queue mapping is
introduced.
So when dispach request from sw queue via blk_mq_flush_busy_ctxs() or
blk_mq_dequeue_from_ctx(), one request belonging to other queue type of
hctx can be dispatched to current hctx in case that read queue or poll
queue is enabled.
This patch fixes this issue by introducing per-queue-type list.
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Changed by me to not use separately cacheline aligned lists, just
place them all in the same cacheline where we had just the one list
and lock before.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions