]> www.infradead.org Git - users/hch/block.git/commit
md/raid10: use the atomic queue limit update APIs
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 13:44:42 +0000 (14:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 2 Mar 2024 14:12:03 +0000 (07:12 -0700)
commit8989340bf542f3bfe23f0b4d09804428a84f8844
treeeab44c75424d629b3a3ca2d0db5086cae792083c
parent017cdd5a7ddabfe42878fc61188faf526aef4f7c
md/raid10: 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>
drivers/md/raid10.c