]> www.infradead.org Git - users/hch/block.git/commit
md/raid1: use the atomic queue limit update APIs
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 13:41:16 +0000 (14:41 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 26 Feb 2024 15:53:30 +0000 (10:53 -0500)
commit0d28a99a20454389e1f02ea183de9c94a6e187f5
tree4540fa8bde46dc2b8efd3546d30f03e5a2969d7e
parent59b41c410f0a6ca3365fd3c7798086c334aa0640
md/raid1: 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>
drivers/md/raid1.c