]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Gerald Schaefer <geraldsc@de.ibm.com> |
2 | Subject: zfcp: Fix reference counting for cfdc requests | |
3 | References: bnc#487755,LTC#52849 | |
4 | ||
5 | Symptom: Setting adapter off-line will hang. | |
6 | Problem: The adapter reference count can get negative. | |
7 | Solution: Increase the reference count when issuing | |
8 | cfdc requests. | |
9 | ||
10 | Acked-by: John Jolly <jjolly@suse.de> | |
11 | --- | |
12 | drivers/s390/scsi/zfcp_cfdc.c | 1 + | |
13 | 1 file changed, 1 insertion(+) | |
14 | ||
15 | Index: linux-sles11/drivers/s390/scsi/zfcp_cfdc.c | |
16 | =================================================================== | |
17 | --- linux-sles11.orig/drivers/s390/scsi/zfcp_cfdc.c | |
18 | +++ linux-sles11/drivers/s390/scsi/zfcp_cfdc.c | |
19 | @@ -207,6 +207,7 @@ static long zfcp_cfdc_dev_ioctl(struct f | |
20 | retval = -ENXIO; | |
21 | goto free_buffer; | |
22 | } | |
23 | + zfcp_adapter_get(adapter); | |
24 | ||
25 | retval = zfcp_cfdc_sg_setup(data->command, fsf_cfdc->sg, | |
26 | data_user->control_file); |