diff options
author | Hannes Reinecke <hare@suse.de> | 2018-07-11 10:09:30 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-13 05:01:16 +0200 |
commit | 0993ed922a3e62a66fcad41633985b127ecf71b0 (patch) | |
tree | b6fb21f3f5c4737e690eb47d3677a8b41801a8f7 /drivers/scsi/snic/snic_trc.c | |
parent | scsi: libfc: Add WARN_ON() when deleting rports (diff) | |
download | linux-0993ed922a3e62a66fcad41633985b127ecf71b0.tar.xz linux-0993ed922a3e62a66fcad41633985b127ecf71b0.zip |
scsi: fcoe: hold disc_mutex when traversing rport lists
When calling either fc_rport_logon() or fc_rport_logoff() during rport list
traversal we cannot use the RCU list traversal, as either of these
functions will be taking a mutex. So we need to partially revert commit
a407c593398c to take the disc mutex during traversal. We should, however,
continue to use krefs to ensure that the rport object will not be freed
from under us.
Fixes: a407c593398c ("scsi: libfc: Fixup disc_mutex handling")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/snic/snic_trc.c')
0 files changed, 0 insertions, 0 deletions