md/raid5: use the atomic queue limit update APIs
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2024 14:01:46 +0000 (07:01 -0700)
committerSong Liu <song@kernel.org>
Wed, 6 Mar 2024 16:59:53 +0000 (08:59 -0800)
commitf63f17350e537300312e9e19b51f69b61fa44291
tree104a22f61df2093111f00d633b6fc1acf851fe49
parent97894f7d3c2966164516a8a5109674763d3a55e1
md/raid5: use the atomic queue limit update APIs

Build the queue limits outside the queue and apply them using
queue_limits_set.  To make the code more obvious also split the queue
limits handling into separate helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20240303140150.5435-8-hch@lst.de
drivers/md/raid5.c