SCSI: libiscsi regression in 2.6.25: fix setting of recv timer
authorMike Christie <michaelc@cs.wisc.edu>
Tue, 13 May 2008 19:10:25 +0000 (19:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 15 May 2008 14:50:07 +0000 (07:50 -0700)
commitbfee08b351f67cf73aa87dce89aa56c0987b609c
treefca0b033f0fb14269807c44a07a51e07557daf1c
parent0383bf8c3b248f928e3df05f78466a2e96169f10
SCSI: libiscsi regression in 2.6.25: fix setting of recv timer

commit c8611f975403dd20e6503aff8aded5dcb718f75b upstream

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>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libiscsi.c