diff options
author | John Garry <john.garry@huawei.com> | 2022-10-26 18:35:13 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-10-28 07:54:47 -0600 |
commit | e3c5a78cdb6237bfb9641b63cccf366325229eec (patch) | |
tree | 0e444ce7eee80fff6477afe37ab3417d4ac290c8 /kernel/kexec.c | |
parent | dea31328d424b5c11c65a3cf9936656abafe94ba (diff) | |
download | linux-e3c5a78cdb6237bfb9641b63cccf366325229eec.tar.gz |
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: 1f5bd336b9150 ("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>
Diffstat (limited to 'kernel/kexec.c')
0 files changed, 0 insertions, 0 deletions