md/raid0: use the atomic queue limit update APIs
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2024 14:01:44 +0000 (07:01 -0700)
committerSong Liu <song@kernel.org>
Wed, 6 Mar 2024 16:59:53 +0000 (08:59 -0800)
commit56cf22d6f672453f8d3392776c9317f217e68dca
tree4e366f12b6b444f5f0eb08f1d61fde03c890848a
parente305fce1883128a9468efe1876a057df48a261d6
md/raid0: 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 a separate helper function.

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-6-hch@lst.de
drivers/md/raid0.c