]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sbitmap: introduce __sbitmap_for_each_set()
authorMing Lei <ming.lei@redhat.com>
Sat, 14 Oct 2017 09:22:27 +0000 (17:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Nov 2017 14:20:02 +0000 (08:20 -0600)
commit7930d0a00ff5dbcc80f793d1a7a6b8de4e591f1a
tree7afbd8c0264c0e6d39b347145a4761620d9a30ae
parentcaf8eb0d604a0eaeb8111eb4d36853a6d08eebe7
sbitmap: introduce __sbitmap_for_each_set()

For blk-mq, we need to be able to iterate software queues starting
from any queue in a round robin fashion, so introduce this helper.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Cc: Omar Sandoval <osandov@fb.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/sbitmap.h