]> www.infradead.org Git - users/hch/block.git/commit
md/raid1: use the atomic queue limit update APIs
authorChristoph Hellwig <hch@lst.de>
Sat, 2 Mar 2024 14:09:30 +0000 (07:09 -0700)
committerChristoph Hellwig <hch@lst.de>
Sat, 2 Mar 2024 14:11:57 +0000 (07:11 -0700)
commit04a78c5dbcd8deacdde264c4bff69c422caac606
treee9bca571ac594b2c5c819f894993af473dcc542e
parent9bbf5281bea673ac5744724b1c139285ccc51c22
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>
Reviewed--by: Song Liu <song@kernel.org>
Tested-by: Song Liu <song@kernel.org>
drivers/md/raid1.c