Hannes Reinecke 4734b5d72d block: check for max_hw_sectors underflow
[ Upstream commit e993db2d6e5207f1ae061c2ac554ab1f714c741d ]

The logical block size need to be smaller than the max_hw_sector
setting, otherwise we can't even transfer a single LBA.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-11 12:51:22 +02:00
..
2024-04-26 11:01:28 -07:00
2024-03-11 11:43:44 -07:00
2023-06-26 12:47:20 -07:00
2024-03-11 11:43:44 -07:00
2023-06-30 11:57:07 -07:00