scsi: sbitmap: Maintain allocation round_robin in sbitmap
authorMing Lei <ming.lei@redhat.com>
Fri, 22 Jan 2021 02:33:06 +0000 (10:33 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Mar 2021 22:36:59 +0000 (17:36 -0500)
commitefe1f3a1d5833c0ddd61ee50dbef8908f65a0a5e
treee78d9eb1384785d86512e03e2e70944a90484981
parent4ec591790356f0e5a95f8d278b0cfd04aea2ae52
scsi: sbitmap: Maintain allocation round_robin in sbitmap

Currently the allocation round_robin info is maintained by sbitmap_queue.

However, bit allocation really belongs to sbitmap. Move it there.

Link: https://lore.kernel.org/r/20210122023317.687987-3-ming.lei@redhat.com
Cc: Omar Sandoval <osandov@fb.com>
Cc: Kashyap Desai <kashyap.desai@broadcom.com>
Cc: Sumanesh Samanta <sumanesh.samanta@broadcom.com>
Cc: Ewan D. Milne <emilne@redhat.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: virtualization@lists.linux-foundation.org
Tested-by: Sumanesh Samanta <sumanesh.samanta@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/blk-mq.c
block/kyber-iosched.c
drivers/vhost/scsi.c
include/linux/sbitmap.h
lib/sbitmap.c