md: add queue limit helpers
authorChristoph Hellwig <hch@lst.de>
Sun, 3 Mar 2024 14:01:43 +0000 (07:01 -0700)
committerSong Liu <song@kernel.org>
Wed, 6 Mar 2024 16:59:53 +0000 (08:59 -0800)
commite305fce1883128a9468efe1876a057df48a261d6
treedfc4adba4432e5d383a607bfb11bd90c38490827
parent176df894d7974166c65d0cce3b3b019678f9e698
md: add queue limit helpers

Add a few helpers that wrap the block queue limits API for use in MD.

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