diff options
| author | Hannes Reinecke <[email protected]> | 2017-09-25 11:47:23 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-09-26 01:34:09 +0000 |
| commit | f091fb8c344ce13cbf058d304c6cbb042be97058 (patch) | |
| tree | 41b1c42cf87d135bb2a1ce1ea1d043fc53ac0cc4 /tools/lib/api/fs/tracing_path.h | |
| parent | scsi: scsi_transport_fc: set scsi_target_id upon rescan (diff) | |
| download | kernel-f091fb8c344ce13cbf058d304c6cbb042be97058.tar.gz kernel-f091fb8c344ce13cbf058d304c6cbb042be97058.zip | |
scsi: scsi_transport_fc: Also check for NOTPRESENT in fc_remote_port_add()
During failover there is a small race window between fc_remote_port_add()
and fc_timeout_deleted_rport(); the latter drops the lock after setting the
port to NOTPRESENT, so if fc_remote_port_add() is called right at that time
it will fail to detect the existing rport and happily adding a new
structure, causing rports to get registered twice.
Signed-off-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.h')
0 files changed, 0 insertions, 0 deletions
