Skip to content

Commit a2b4758

Browse files
author
Sadegh Savari
committed
check all the lvols in batch
1 parent e444ba0 commit a2b4758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/lvol/lvol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6613,7 +6613,7 @@ spdk_lvol_transfer_delay_cb(void *ctx, int rc) {
66136613
struct spdk_lvs_xfer *sub_xfer;
66146614

66156615
if (rc == 0) {
6616-
if (xfer->num_sub_tasks > 0 && xfer->idx < (uint32_t)xfer->num_sub_tasks) {
6616+
if (xfer->num_sub_tasks > 0 && xfer->idx < (uint32_t)xfer->num_sub_tasks - 1) {
66176617
xfer->idx++;
66186618
sub_xfer = xfer->list_task[xfer->idx];
66196619
blob_check_io_inflaight(sub_xfer->lvol->blob, spdk_lvol_transfer_delay_cb, xfer);

0 commit comments

Comments
 (0)