]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] libiscsi regression in 2.6.25: fix nop timer handling
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 8 May 2008 01:43:52 +0000 (20:43 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 8 May 2008 15:04:54 +0000 (10:04 -0500)
commit4cf1043593db6a337f10e006c23c69e5fc93e722
treeea7489898d58d9e8185539a1d484be21d57632ac
parenta85591fd0baf4ed3f03ee1aaac6a985e400cf089
[SCSI] libiscsi regression in 2.6.25: fix nop timer handling

The following patch fixes a bug in the iscsi nop processing.
The target sends iscsi nops to ping the initiator and the
initiator has to send nops to reply and can send nops to
ping the target.

In 2.6.25 we moved the nop processing to the kernel to handle
problems when the userspace daemon is not up, but the target
is pinging us, and to handle when scsi commands timeout, but
the transport may be the cause (we can send a nop to check
the transport). When we added this code we added a bug where
if the transport timer wakes at the exact same time we are supposed to check
for a nop timeout we drop the session instead of checking the transport.

This patch checks if a iscsi ping is outstanding and if the ping has
timed out, to determine if we need to signal a connection problem.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libiscsi.c