提交 70431105 编写于 作者: B Brian King 提交者: James Bottomley

[SCSI] ibmvfc: Fix locking in ibmvfc_remove

Need to grab the host lock around the call to ibmvfc_link_down.
Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 230934a6
...@@ -4420,7 +4420,11 @@ static int ibmvfc_remove(struct vio_dev *vdev) ...@@ -4420,7 +4420,11 @@ static int ibmvfc_remove(struct vio_dev *vdev)
ENTER; ENTER;
ibmvfc_remove_trace_file(&vhost->host->shost_dev.kobj, &ibmvfc_trace_attr); ibmvfc_remove_trace_file(&vhost->host->shost_dev.kobj, &ibmvfc_trace_attr);
spin_lock_irqsave(vhost->host->host_lock, flags);
ibmvfc_link_down(vhost, IBMVFC_HOST_OFFLINE); ibmvfc_link_down(vhost, IBMVFC_HOST_OFFLINE);
spin_unlock_irqrestore(vhost->host->host_lock, flags);
ibmvfc_wait_while_resetting(vhost); ibmvfc_wait_while_resetting(vhost);
ibmvfc_release_crq_queue(vhost); ibmvfc_release_crq_queue(vhost);
kthread_stop(vhost->work_thread); kthread_stop(vhost->work_thread);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册