]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commita39b6c858776daf6e8d8ec6062454086044d66eb
treee7f170d68959062d5f34e5a8d6e9501b992e471a
parentec68da721bba12dfb8808a3df5a08b1af270020d
[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