Commit 98d34c0
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: ba3f67c ("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>1 parent 1c0b3fc commit 98d34c0
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | | - | |
1074 | | - | |
| 1073 | + | |
1075 | 1074 | | |
1076 | 1075 | | |
1077 | 1076 | | |
| |||
1165 | 1164 | | |
1166 | 1165 | | |
1167 | 1166 | | |
1168 | | - | |
1169 | | - | |
1170 | 1167 | | |
1171 | 1168 | | |
1172 | 1169 | | |
| |||
2320 | 2317 | | |
2321 | 2318 | | |
2322 | 2319 | | |
2323 | | - | |
2324 | | - | |
2325 | 2320 | | |
2326 | 2321 | | |
2327 | 2322 | | |
| |||
2360 | 2355 | | |
2361 | 2356 | | |
2362 | 2357 | | |
2363 | | - | |
| 2358 | + | |
2364 | 2359 | | |
2365 | 2360 | | |
2366 | 2361 | | |
| |||
2374 | 2369 | | |
2375 | 2370 | | |
2376 | 2371 | | |
2377 | | - | |
| 2372 | + | |
2378 | 2373 | | |
2379 | | - | |
| 2374 | + | |
2380 | 2375 | | |
2381 | 2376 | | |
2382 | 2377 | | |
| |||
2388 | 2383 | | |
2389 | 2384 | | |
2390 | 2385 | | |
2391 | | - | |
2392 | | - | |
| 2386 | + | |
2393 | 2387 | | |
2394 | 2388 | | |
2395 | 2389 | | |
| |||
0 commit comments