Jim Harris 9459848ce5 iscsi: fix iscsi task refcount for out of order write completions
For large writes that require multiple SCSI tasks (one for immediate
data, then one or more for R2T-solicited data), we bump the refcount
for the task associated with the initial immediate data PDU, to
ensure it does not get freed until all of the child tasks are
completed.  But in some cases this initial immediate data PDU could
complete after all of the R2T-soliciated data PDUs.  The
completion code was not handling this case correctly which would
result in the iSCSI connection thinking it still had outstanding
SCSI tasks when the connection closed.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I9f9c5322755462d1918fde0075c87c84295cb10c
2016-10-14 11:07:50 -07:00
..
2016-08-03 14:43:40 -07:00
2016-08-03 14:43:40 -07:00
2016-08-03 14:43:40 -07:00
2016-08-03 14:43:40 -07:00
2016-10-12 09:53:32 -07:00
2016-08-03 14:43:40 -07:00
2016-08-10 22:21:22 -07:00
2016-08-03 14:43:40 -07:00
2016-08-03 14:43:40 -07:00