]> www.infradead.org Git - users/willy/xarray.git/commit
block: don't reduce max_sectors based on io_opt
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jul 2024 05:17:51 +0000 (07:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 1 Jul 2024 12:52:42 +0000 (06:52 -0600)
commit37105615f73125cb0466c09796f277a4c46d9295
tree6ee5da5a05f2c7c1ab2f4121c16c2e34fc5b96a0
parentf62e8edc0a9fda84fe5bf32d5f5874b489d6c301
block: don't reduce max_sectors based on io_opt

Don't reduce the max_sectors value below the normal cap when the driver
advertsizes a very low io_opt.  This restores the behavior we had before
the recent changes to the max_sectors calculation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20240701051800.1245240-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c