]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Properly init requests from blk_mq_alloc_request_hctx()
authorJohn Garry <john.garry@huawei.com>
Wed, 26 Oct 2022 10:35:13 +0000 (18:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Oct 2022 13:54:47 +0000 (07:54 -0600)
commit6543993107b598cdd758f3c6c0dc562cfedea763
tree0e444ce7eee80fff6477afe37ab3417d4ac290c8
parenta6957a665d1325b329ea57f26dd229ed94b565da
blk-mq: Properly init requests from blk_mq_alloc_request_hctx()

Function blk_mq_alloc_request_hctx() is missing zeroing/init of rq->bio,
biotail, __sector, and __data_len members, which blk_mq_alloc_request()
has, so duplicate what we do in blk_mq_alloc_request().

Fixes: 096e24979dd3d ("blk-mq: add blk_mq_alloc_request_hctx")
Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/1666780513-121650-1-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c