]> www.infradead.org Git - nvme.git/commit
block: ensure that struct blk_mq_alloc_data is fully initialized
authorJens Axboe <axboe@kernel.dk>
Tue, 15 Apr 2025 14:48:06 +0000 (08:48 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Apr 2025 11:07:02 +0000 (05:07 -0600)
commit9b79f86e06283bad016df3dca0f2d4fd2a2c690c
tree8a62eae1dabf021fe03817f0ae6f842015e7640b
parente093b784ab98ce5aff4cd81b1072987131facfba
block: ensure that struct blk_mq_alloc_data is fully initialized

On x86, rep stos will be emitted to clear the the blk_mq_alloc_data
struct, as not all members are being explicitly initialied. Depending on
the type of CPU, this is a noticeable slowdown compared to just ensuring
that the struct is fully initialized when setup.

For the 4 spots that setup a struct blk_mq_alloc_data on the stack,
ensure all members are being initialized.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c