|
@@ -4420,7 +4420,11 @@ static int ibmvfc_remove(struct vio_dev *vdev)
|
|
|
|
|
|
ENTER;
|
|
|
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);
|
|
|
+ spin_unlock_irqrestore(vhost->host->host_lock, flags);
|
|
|
+
|
|
|
ibmvfc_wait_while_resetting(vhost);
|
|
|
ibmvfc_release_crq_queue(vhost);
|
|
|
kthread_stop(vhost->work_thread);
|