diff options
author | Swen Schillig <swen@vnet.ibm.com> | 2009-11-24 10:54:00 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:02 -0500 |
commit | de3dc57214a1466034ecc4d4ffb10331d34c09a3 (patch) | |
tree | 63eb490d66f9db2cf032041392fb2f4d5ac4785c /drivers/s390/scsi/zfcp_ext.h | |
parent | f3450c7b917201bb49d67032e9f60d5125675d6a (diff) |
[SCSI] zfcp: Remove global config_mutex
The global config_mutex was required for the serialization of a
configuration change within the zfcp driver. This global locking is
now obsolete and can be removed. The requirement of serializing the
access to a zfcp_adapter reference via a ccw_device is realized wth a
static spinlock.
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ext.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_ext.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_ext.h b/drivers/s390/scsi/zfcp_ext.h index 3106c3be6395..1e3ec708505b 100644 --- a/drivers/s390/scsi/zfcp_ext.h +++ b/drivers/s390/scsi/zfcp_ext.h | |||
@@ -14,7 +14,7 @@ | |||
14 | /* zfcp_aux.c */ | 14 | /* zfcp_aux.c */ |
15 | extern struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *, u64); | 15 | extern struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *, u64); |
16 | extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64); | 16 | extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64); |
17 | extern int zfcp_adapter_enqueue(struct ccw_device *); | 17 | extern struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *); |
18 | extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32, | 18 | extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32, |
19 | u32); | 19 | u32); |
20 | extern struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *, u64); | 20 | extern struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *, u64); |
@@ -24,11 +24,14 @@ extern int zfcp_sg_setup_table(struct scatterlist *, int); | |||
24 | extern void zfcp_device_unregister(struct device *, | 24 | extern void zfcp_device_unregister(struct device *, |
25 | const struct attribute_group *); | 25 | const struct attribute_group *); |
26 | extern void zfcp_adapter_release(struct kref *); | 26 | extern void zfcp_adapter_release(struct kref *); |
27 | extern void zfcp_adapter_unregister(struct zfcp_adapter *); | ||
27 | 28 | ||
28 | /* zfcp_ccw.c */ | 29 | /* zfcp_ccw.c */ |
29 | extern int zfcp_ccw_register(void); | 30 | extern int zfcp_ccw_register(void); |
30 | extern int zfcp_ccw_priv_sch(struct zfcp_adapter *); | 31 | extern int zfcp_ccw_priv_sch(struct zfcp_adapter *); |
31 | extern struct ccw_driver zfcp_ccw_driver; | 32 | extern struct ccw_driver zfcp_ccw_driver; |
33 | extern struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *); | ||
34 | extern void zfcp_ccw_adapter_put(struct zfcp_adapter *); | ||
32 | 35 | ||
33 | /* zfcp_cfdc.c */ | 36 | /* zfcp_cfdc.c */ |
34 | extern struct miscdevice zfcp_cfdc_misc; | 37 | extern struct miscdevice zfcp_cfdc_misc; |