[SCSI] iscsi_tcp: drop session when itt does not match any command
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 13 Dec 2007 18:43:37 +0000 (12:43 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:28:45 +0000 (18:28 -0600)
commit7a53dc52a5f218bf306b875bf0610e851d5a8268
treee7f170d68959062d5f34e5a8d6e9501b992e471a
parent03766a1d4e4520066d3ed2097bfdf6e606aba828
[SCSI] iscsi_tcp: drop session when itt does not match any command

A target should never send us a itt that does not match a running
task. If it does we do not really know what is coming down after the header,
unless we evaluate the hdr and do some guessing sometimes. However,
even if we know what is coming we probably do not have buffers for it or we
cannot respond (if it is a r2t for example), so just drop the session.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/iscsi_tcp.c