[SCSI] libiscsi regression in 2.6.25: fix setting of recv timer
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 9 May 2008 01:15:34 +0000 (20:15 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 9 May 2008 01:38:57 +0000 (20:38 -0500)
commitc8611f975403dd20e6503aff8aded5dcb718f75b
treedf1cdd33d074eed300dff8adee29c018428861a2
parent4cf1043593db6a337f10e006c23c69e5fc93e722
[SCSI] libiscsi regression in 2.6.25: fix setting of recv timer

If the ping tmo is longer than the recv tmo then we could miss a window
where we were supposed to check the recv tmo. This happens because
the ping code will set the next timeout for the ping timeout, and if the
ping executes quickly there will be a long chunk of time before the
timer wakes up again.

This patch has the ping processing code kick off a recv
tmo check when getting a nop in response to our ping.

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