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>
This commit is contained in:
parent
4ec5917903
commit
efe1f3a1d5
5 changed files with 29 additions and 28 deletions
|
|
@ -478,7 +478,8 @@ static int kyber_init_hctx(struct blk_mq_hw_ctx *hctx, unsigned int hctx_idx)
|
|||
|
||||
for (i = 0; i < KYBER_NUM_DOMAINS; i++) {
|
||||
if (sbitmap_init_node(&khd->kcq_map[i], hctx->nr_ctx,
|
||||
ilog2(8), GFP_KERNEL, hctx->numa_node)) {
|
||||
ilog2(8), GFP_KERNEL, hctx->numa_node,
|
||||
false)) {
|
||||
while (--i >= 0)
|
||||
sbitmap_free(&khd->kcq_map[i]);
|
||||
goto err_kcqs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue