linux/drivers/scsi/libfc
Joe Eykholt 00fea930d4 [SCSI] libfc: fix rport event race between READY and LOGO
When a remote port becomes ready and a LOGO is received before
the READY event is in rport_work waiting on the mutex, the
event is changed to LOGO and the work queued, so both the
calls to rport_work see the LOGO event, and both try to do
the list_del(), causing a crash.

Don't change the event if it is already set.

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@suse.de>
2009-09-10 12:07:44 -05:00
..
fc_disc.c [SCSI] libfc: don't create dummy (rogue) remote ports 2009-09-10 12:07:43 -05:00
fc_elsct.c [SCSI] libfc: change elsct to use FC_ID instead of rdata 2009-09-10 12:07:41 -05:00
fc_exch.c [SCSI] fcoe, libfc: fully makes use of per cpu exch pool and then removes em_lock 2009-09-05 09:47:37 -05:00
fc_fcp.c [SCSI] libfc: change elsct to use FC_ID instead of rdata 2009-09-10 12:07:41 -05:00
fc_frame.c [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00
fc_lport.c [SCSI] libfc: rename rport event CREATED to READY 2009-09-10 12:07:43 -05:00
fc_rport.c [SCSI] libfc: fix rport event race between READY and LOGO 2009-09-10 12:07:44 -05:00
Makefile [SCSI] libfc: A modular Fibre Channel library 2008-12-29 11:24:33 -06:00