]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: Increase restriction on max segments per request
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 16 Jun 2022 19:19:45 +0000 (13:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:43 +0000 (17:14 -0600)
commit516b8126ac22654390e2906e0b3a415821790a63
tree88b89bee7c79726ab5fd5c0229d33d89d50a773b
parenta400c335420c365074f80173bf27aee2448b8f50
md/raid5: Increase restriction on max segments per request

The block layer defaults the maximum segments to 128, which means
requests tend to get split around the 512KB depending on how many
pages can be merged. There's no such restriction in the raid5 code
so increase the limit to USHRT_MAX so that larger requests can be
sent as one.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/raid5.c