|
sbitmap is the tag allocator used by blk-mq and the I/O schedulers built
on top of it, but the plain, synchronous part of its API has no test
coverage at all.
Add a KUnit suite covering initialisation, allocation and exhaustion,
deferred clears, round-robin ordering, resize, the bitmap helpers and
sbitmap_for_each_set(), so that the behaviour is checked on every boot.
The new file is added to the BLOCK LAYER entry in MAINTAINERS, next to
lib/sbitmap.c, so that it does not end up without a maintainer.
Link: https://lore.kernel.org/20261016073253.520971-1-szwyb123@gmail.com
Signed-off-by: Wang Yibo <szwyb123@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Gow <david@davidgow.net>
Tested-by: Keith Teeple <keithrteeple@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
|