mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[SCSI] zfcp: fix: avoid race between fc_remote_port_add and scsi_add_device
Flush workqueue of a scsi host after a remote port for that host is registered at the fc transport class. Otherwise immediate registration of a scsi device on that host is racy. Signed-off-by: Andreas Herrmann <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
ed829ad607
commit
61c41823c5
1 changed files with 2 additions and 0 deletions
|
|
@ -3415,6 +3415,8 @@ zfcp_erp_action_cleanup(int action, struct zfcp_adapter *adapter,
|
|||
"(adapter %s, wwpn=0x%016Lx)\n",
|
||||
zfcp_get_busid_by_port(port),
|
||||
port->wwpn);
|
||||
else
|
||||
scsi_flush_work(adapter->scsi_host);
|
||||
}
|
||||
zfcp_port_put(port);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue