alistair23-linux/drivers/scsi/libfc
Satish Kharat d1b3f51ee1 scsi: libfc: fix a deadlock in fc_rport_work
In places like fc_rport_recv_plogi_req and fcoe_ctlr_vn_add we always
take the lport disc_mutex lock before the rports mutex
(rp_mutex) lock. Gaurding list_del_rcu(&rdata->peers) with
disc.disc_mutex in fc_rport_work is correct but the rp_mutex lock
can and should to be dropped before taking that lock else results
in a deadlock.

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2017-10-06 14:58:22 -04:00
..
fc_disc.c scsi: libfc: pass an error pointer to fc_disc_error() 2017-07-12 17:25:12 -04:00
fc_elsct.c scsi: libfc: Replace ->exch_seq_send callback with function call 2016-11-08 17:29:55 -05:00
fc_exch.c scsi: libfc: Don't have fc_exch_find log errors on a new exchange 2016-11-08 17:29:58 -05:00
fc_fcp.c scsi: fc_fcp: do not call fc_block_scsi_eh() from host reset 2017-08-25 17:21:10 -04:00
fc_frame.c [SCSI] libfc, fcoe, bnx2fc: cleanup fcoe_dev_stats 2012-07-20 08:31:47 +01:00
fc_libfc.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
fc_libfc.h libfc, libfcoe, fcoe: Convert debug_logging macros to pr_info 2012-12-14 10:38:55 -08:00
fc_lport.c scsi: libfc: directly call ELS request handlers 2017-04-11 20:58:26 -04:00
fc_npiv.c libfc: Use the correct function name in kernel-doc comment. 2015-11-09 17:15:52 -08:00
fc_rport.c scsi: libfc: fix a deadlock in fc_rport_work 2017-10-06 14:58:22 -04:00
Makefile [SCSI] libfc: add some generic NPIV support routines to libfc 2009-12-04 12:00:56 -06:00