]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/s390-15-12-zfcp-wka-work.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-15-12-zfcp-wka-work.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: zfcp: Cancel WKA port work on adapter dequeue
3References: bnc#518291,LTC#54988
4
5Symptom: Oops when enabling / disabling lots of FCP subchannels
6 while setting the chpid off / on.
7Problem: The delayed_work for the directory server wka port is
8 being executed after the adapter struct has been removed.
9Solution: Before removing the adapter struct make sure that the
10 delayed_work is not running.
11
12Acked-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);