diff options
author | Hannes Reinecke <hare@suse.de> | 2017-09-25 14:47:23 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-09-26 04:34:09 +0300 |
commit | f091fb8c344ce13cbf058d304c6cbb042be97058 (patch) | |
tree | 41b1c42cf87d135bb2a1ce1ea1d043fc53ac0cc4 /drivers/vfio | |
parent | 675195d0be27391d48d8d23c7c62991505168528 (diff) | |
download | linux-f091fb8c344ce13cbf058d304c6cbb042be97058.tar.xz |
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 <hare@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions