Skip to content

Commit a905732

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/lvol/lvol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4903,8 +4903,8 @@ destroy_parent_xfer_task(struct spdk_lvs_xfer *xfer)
49034903
xfer_type_to_string(xfer->type),
49044904
batch_failed ? "FAILED" : "DONE");
49054905

4906-
for (int i = 0; i < xfer->num_sub_tasks; i++) {
4907-
sub_xfer = list_task[i];
4906+
for (int i = xfer->num_sub_tasks; i > 0; i--) {
4907+
sub_xfer = list_task[i - 1];
49084908

49094909
/*
49104910
* Tasks that failed were already unfrozen by

0 commit comments

Comments
 (0)