]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.arch/s390-12-16-zfcp_reference_counting_for_cfdc_requests.patch
Merge branch 'master' into next
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / s390-12-16-zfcp_reference_counting_for_cfdc_requests.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: zfcp: Fix reference counting for cfdc requests
3References: bnc#487755,LTC#52849
4
5Symptom: Setting adapter off-line will hang.
6Problem: The adapter reference count can get negative.
7Solution: Increase the reference count when issuing
8 cfdc requests.
9
10Acked-by: John Jolly <jjolly@suse.de>
11---
12 drivers/s390/scsi/zfcp_cfdc.c | 1 +
13 1 file changed, 1 insertion(+)
14
15Index: 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);