Skip to content

Commit a7ce462

Browse files
Unlocked the spin lock before closing the bdev.
1 parent 90dabd7 commit a7ce462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bdev/bdev.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9397,6 +9397,7 @@ bdev_set_qos_limit_done(struct set_qos_limit_ctx *ctx, int status)
93979397
char *tmp_remove_bdev_names[255] = {NULL};
93989398
spdk_spin_lock(&ctx->bdev->internal.spinlock);
93999399
ctx->bdev->internal.qos_mod_in_progress = false;
9400+
spdk_spin_unlock(&ctx->bdev->internal.spinlock);
94009401
SPDK_NOTICELOG("Set qos limit done for %s\n", ctx->qos_bdev_node->bdev_name);
94019402
if(ctx->internal_request == true)
94029403
{
@@ -9477,7 +9478,6 @@ bdev_set_qos_limit_done(struct set_qos_limit_ctx *ctx, int status)
94779478
ctx->cb_fn(ctx->cb_arg,0);
94789479
free(ctx);
94799480
}
9480-
spdk_spin_unlock(&ctx->bdev->internal.spinlock);
94819481
return;
94829482
}
94839483

0 commit comments

Comments
 (0)