]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Gerald Schaefer <geraldsc@de.ibm.com> |
2 | Subject: zfcp: Cancel WKA port work on adapter dequeue | |
3 | References: bnc#518291,LTC#54988 | |
4 | ||
5 | Symptom: Oops when enabling / disabling lots of FCP subchannels | |
6 | while setting the chpid off / on. | |
7 | Problem: The delayed_work for the directory server wka port is | |
8 | being executed after the adapter struct has been removed. | |
9 | Solution: Before removing the adapter struct make sure that the | |
10 | delayed_work is not running. | |
11 | ||
12 | Acked-by: John Jolly <jjolly@suse.de> | |
13 | --- | |
14 | drivers/s390/scsi/zfcp_aux.c | 1 + | |
15 | 1 file changed, 1 insertion(+) | |
16 | ||
17 | --- a/drivers/s390/scsi/zfcp_aux.c | |
18 | +++ b/drivers/s390/scsi/zfcp_aux.c | |
19 | @@ -552,6 +552,7 @@ void zfcp_adapter_dequeue(struct zfcp_ad | |
20 | ||
21 | cancel_work_sync(&adapter->scan_work); | |
22 | cancel_work_sync(&adapter->stat_work); | |
23 | + zfcp_fc_wka_port_force_offline(&adapter->nsp); | |
24 | zfcp_adapter_scsi_unregister(adapter); | |
25 | sysfs_remove_group(&adapter->ccw_device->dev.kobj, | |
26 | &zfcp_sysfs_adapter_attrs); |