aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_ext.h
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2009-11-24 10:54:00 -0500
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:02:02 -0500
commitde3dc57214a1466034ecc4d4ffb10331d34c09a3 (patch)
tree63eb490d66f9db2cf032041392fb2f4d5ac4785c /drivers/s390/scsi/zfcp_ext.h
parentf3450c7b917201bb49d67032e9f60d5125675d6a (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.h5
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 */
15extern struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *, u64); 15extern struct zfcp_unit *zfcp_get_unit_by_lun(struct zfcp_port *, u64);
16extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64); 16extern struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *, u64);
17extern int zfcp_adapter_enqueue(struct ccw_device *); 17extern struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *);
18extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32, 18extern struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *, u64, u32,
19 u32); 19 u32);
20extern struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *, u64); 20extern struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *, u64);
@@ -24,11 +24,14 @@ extern int zfcp_sg_setup_table(struct scatterlist *, int);
24extern void zfcp_device_unregister(struct device *, 24extern void zfcp_device_unregister(struct device *,
25 const struct attribute_group *); 25 const struct attribute_group *);
26extern void zfcp_adapter_release(struct kref *); 26extern void zfcp_adapter_release(struct kref *);
27extern void zfcp_adapter_unregister(struct zfcp_adapter *);
27 28
28/* zfcp_ccw.c */ 29/* zfcp_ccw.c */
29extern int zfcp_ccw_register(void); 30extern int zfcp_ccw_register(void);
30extern int zfcp_ccw_priv_sch(struct zfcp_adapter *); 31extern int zfcp_ccw_priv_sch(struct zfcp_adapter *);
31extern struct ccw_driver zfcp_ccw_driver; 32extern struct ccw_driver zfcp_ccw_driver;
33extern struct zfcp_adapter *zfcp_ccw_adapter_by_cdev(struct ccw_device *);
34extern void zfcp_ccw_adapter_put(struct zfcp_adapter *);
32 35
33/* zfcp_cfdc.c */ 36/* zfcp_cfdc.c */
34extern struct miscdevice zfcp_cfdc_misc; 37extern struct miscdevice zfcp_cfdc_misc;