[SCSI] libfc: fix: cancel rport retry timer
authorJoe Eykholt <jeykholt@cisco.com>
Thu, 30 Jul 2009 00:04:54 +0000 (17:04 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:07 +0000 (17:52 -0500)
commit201e5795b7b9582accb6d83316e30f24d7d40fd3
tree76a3d31b5879db683682eb111f90ce6d16e3956e
parent5f7ea3b7f81d5e5180647a071998b73a841bdba9
[SCSI] libfc: fix: cancel rport retry timer

The timer for rport retries wasn't getting canceled, and
would occasionally go off after the module was unloaded.

Add logic to cancel the timer in fc_rport_work().

Since we cancel the timer before deleting the rdata,
it is no longer necessary to do a get_device() for the pending timer.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_rport.c