summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-06-15 15:55:49 -0700
committerJens Axboe <axboe@kernel.dk>2022-06-27 06:29:11 -0600
commit51ab80f0aa861335eb80327af53e444a27e824b8 (patch)
tree6ef9e06210e1e5324b756f7b498788006192bd55 /include/linux/blkdev.h
parent7e923f40a4d229bd9573d6cae64479d6a9770fc3 (diff)
downloadlwn-51ab80f0aa861335eb80327af53e444a27e824b8.tar.gz
lwn-51ab80f0aa861335eb80327af53e444a27e824b8.zip
block: Make blk_mq_get_sq_hctx() select the proper hardware queue type
Since the introduction of blk_mq_get_hctx_type() the operation type in the second argument of blk_mq_get_hctx_type() matters. The introduction of blk_mq_get_hctx_type() caused blk_mq_get_sq_hctx() to select a hardware queue of type HCTX_TYPE_READ instead of HCTX_TYPE_DEFAULT. Switch to hardware queue type HCTX_TYPE_DEFAULT since HCTX_TYPE_READ should only be used for read requests. Cc: Ming Lei <ming.lei@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220615225549.1054905-4-bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions