]> www.infradead.org Git - users/willy/xarray.git/commit
xen-blkfront: fix sector_size propagation to the block layer
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Jun 2024 05:52:38 +0000 (07:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Jul 2024 14:58:12 +0000 (08:58 -0600)
commit98d34c087249d39838874b83e17671e7d5eb1ca7
tree14c01afe2a51d0ef6ed07bf93fc7ccb4e36af4e7
parent1c0b3fca381bf879e2168b362692f83808677f95
xen-blkfront: fix sector_size propagation to the block layer

Ensure that info->sector_size and info->physical_sector_size are set
before the call to blkif_set_queue_limits by doing away with the
local variables and arguments that propagate them.

Thanks to Marek Marczykowski-Górecki and Jürgen Groß for root causing
the issue.

Fixes: ba3f67c11638 ("xen-blkfront: atomically update queue limits")
Reported-by: Rusty Bird <rustybird@net-c.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Link: https://lore.kernel.org/r/20240625055238.7934-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xen-blkfront.c