aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_dbf.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2009-08-18 09:43:07 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-05 09:49:06 -0400
commitd46f384a89c2378cb7858747faa1935db17e22a8 (patch)
treec57deb3db03c23a615123ccd856823dc5245c35a /drivers/s390/scsi/zfcp_dbf.h
parenta67417ab7eeff45bba55666c0e1083260f3624ee (diff)
[SCSI] zfcp: Move debug data from zfcp_data to own data structure
The struct zfcp_adapter includes everything related to the debug traces. This introduces dependences between the definitions in zfcp_def.h and zfcp_dbf.h. Move all debug related data structures to a new data structure to break those dependencies and manage the debug data in zfcp_dbf.[hc]. Reviewed-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_dbf.h')
-rw-r--r--drivers/s390/scsi/zfcp_dbf.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.h b/drivers/s390/scsi/zfcp_dbf.h
index a573f7344dd..4cfd68fe8a2 100644
--- a/drivers/s390/scsi/zfcp_dbf.h
+++ b/drivers/s390/scsi/zfcp_dbf.h
@@ -2,7 +2,7 @@
2 * This file is part of the zfcp device driver for 2 * This file is part of the zfcp device driver for
3 * FCP adapters for IBM System z9 and zSeries. 3 * FCP adapters for IBM System z9 and zSeries.
4 * 4 *
5 * Copyright IBM Corp. 2008, 2008 5 * Copyright IBM Corp. 2008, 2009
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -222,4 +222,19 @@ struct zfcp_scsi_dbf_record {
222 u8 sns_info[ZFCP_DBF_SCSI_FCP_SNS_INFO]; 222 u8 sns_info[ZFCP_DBF_SCSI_FCP_SNS_INFO];
223} __attribute__ ((packed)); 223} __attribute__ ((packed));
224 224
225struct zfcp_dbf {
226 debug_info_t *rec_dbf;
227 debug_info_t *hba_dbf;
228 debug_info_t *san_dbf;
229 debug_info_t *scsi_dbf;
230 spinlock_t rec_dbf_lock;
231 spinlock_t hba_dbf_lock;
232 spinlock_t san_dbf_lock;
233 spinlock_t scsi_dbf_lock;
234 struct zfcp_rec_dbf_record rec_dbf_buf;
235 struct zfcp_hba_dbf_record hba_dbf_buf;
236 struct zfcp_san_dbf_record san_dbf_buf;
237 struct zfcp_scsi_dbf_record scsi_dbf_buf;
238};
239
225#endif /* ZFCP_DBF_H */ 240#endif /* ZFCP_DBF_H */