Files
linux/drivers/scsi
Christoph Hellwig bafea1c58b sd: also set max_user_sectors when setting max_sectors
sd can set a max_sectors value that is lower than the max_hw_sectors
limit based on the block limits VPD page.   While this is rather unusual,
it used to work until the max_user_sectors field was split out to cleanly
deal with conflicting hardware and user limits when the hardware limit
changes.  Also set max_user_sectors to ensure the limit can properly be
stacked.

Fixes: 4f563a6473 ("block: add a max_user_discard_sectors queue limit")
Reported-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240523182618.602003-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-05-28 06:54:36 -06:00
..
2023-10-13 14:15:54 -04:00
2023-05-31 19:59:26 -04:00
2024-03-10 18:15:48 -04:00
2023-04-18 23:01:23 -04:00
2024-04-08 22:01:19 -04:00
2024-04-01 21:08:48 -04:00
2024-04-01 21:08:48 -04:00
2023-05-31 11:36:40 -04:00