lib/iscsi: Remove duplicated freeping primary task for write I/O
For large split write I/O, spdk_iscsi_task_cpl() does the same operations for the error case as the normal path. Hence remove duplicated operation in spdk_iscsi_conn_free_pdu(). This fixes the issue that the reference count of the primary write task goes negative. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I169d8932821f2a1c8e1f153347cd3175f1291bf1 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473818 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
e4cf639f7d
commit
3d8c12a16f
@ -335,8 +335,6 @@ spdk_iscsi_conn_free_pdu(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pd
|
|||||||
/* Free the primary task after the last subtask done */
|
/* Free the primary task after the last subtask done */
|
||||||
spdk_iscsi_task_put(primary);
|
spdk_iscsi_task_put(primary);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
spdk_iscsi_task_put(primary);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user