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)
committerSong Liu <song@kernel.org>
Sun, 3 Jul 2022 14:55:43 +0000 (07:55 -0700)
commite969c8949e9b4b5a45345fc73e998480edcc42b7
tree297d581263743e77445f05148be9862a416c33be
parenta3906874f1f5fbfbc02a18bc653070d5056b9b44
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>
drivers/md/raid5.c