linux/drivers/scsi/fcoe
Hannes Reinecke a407c59339 scsi: libfc: Fixup disc_mutex handling
The list of attached 'rdata' remote port structures is RCU
protected, so there is no need to take the 'disc_mutex' when
traversing it.
Rather we should be using rcu_read_lock() and kref_get_unless_zero()
to validate the entries.
We need, however, take the disc_mutex when deleting an entry;
otherwise we risk clashes with list_add.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-11-08 17:29:46 -05:00
..
fcoe_ctlr.c scsi: libfc: Fixup disc_mutex handling 2016-11-08 17:29:46 -05:00
fcoe_sysfs.c fcoe: implement FIP VLAN responder 2016-07-20 19:49:41 -04:00
fcoe_transport.c scsi: fcoe: fix off by one in eth2fc_speed() 2016-09-26 20:54:45 -04:00
fcoe.c fcoe: add missing destroy_workqueue() on error in fcoe_init() 2016-08-02 01:18:05 -04:00
fcoe.h fcoe: Use default VLAN for FIP VLAN discovery 2016-07-27 00:32:08 -04:00
libfcoe.h libfc, libfcoe, fcoe: Convert debug_logging macros to pr_info 2012-12-14 10:38:55 -08:00
Makefile [SCSI] libfcoe: Add fcoe_sysfs 2012-05-23 09:40:09 +01:00