]>
Commit | Line | Data |
---|---|---|
677c3905 GKH |
1 | From 7c964ffe586bc0c3d9febe9bf97a2e4b2866e5b7 Mon Sep 17 00:00:00 2001 |
2 | From: Steffen Maier <maier@linux.vnet.ibm.com> | |
3 | Date: Wed, 10 Aug 2016 18:30:50 +0200 | |
4 | Subject: zfcp: restore tracing of handle for port and LUN with HBA records | |
5 | ||
6 | From: Steffen Maier <maier@linux.vnet.ibm.com> | |
7 | ||
8 | commit 7c964ffe586bc0c3d9febe9bf97a2e4b2866e5b7 upstream. | |
9 | ||
10 | This information was lost with | |
11 | commit a54ca0f62f953898b05549391ac2a8a4dad6482b | |
12 | ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.") | |
13 | but is required to debug e.g. invalid handle situations. | |
14 | ||
15 | Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> | |
16 | Fixes: a54ca0f62f95 ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.") | |
17 | Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com> | |
18 | Reviewed-by: Hannes Reinecke <hare@suse.com> | |
19 | Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> | |
20 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
21 | ||
22 | --- | |
23 | drivers/s390/scsi/zfcp_dbf.c | 2 ++ | |
24 | drivers/s390/scsi/zfcp_dbf.h | 2 ++ | |
25 | 2 files changed, 4 insertions(+) | |
26 | ||
27 | --- a/drivers/s390/scsi/zfcp_dbf.c | |
28 | +++ b/drivers/s390/scsi/zfcp_dbf.c | |
29 | @@ -85,6 +85,8 @@ void zfcp_dbf_hba_fsf_res(char *tag, int | |
30 | rec->u.res.req_issued = req->issued; | |
31 | rec->u.res.prot_status = q_pref->prot_status; | |
32 | rec->u.res.fsf_status = q_head->fsf_status; | |
33 | + rec->u.res.port_handle = q_head->port_handle; | |
34 | + rec->u.res.lun_handle = q_head->lun_handle; | |
35 | ||
36 | memcpy(rec->u.res.prot_status_qual, &q_pref->prot_status_qual, | |
37 | FSF_PROT_STATUS_QUAL_SIZE); | |
38 | --- a/drivers/s390/scsi/zfcp_dbf.h | |
39 | +++ b/drivers/s390/scsi/zfcp_dbf.h | |
40 | @@ -131,6 +131,8 @@ struct zfcp_dbf_hba_res { | |
41 | u8 prot_status_qual[FSF_PROT_STATUS_QUAL_SIZE]; | |
42 | u32 fsf_status; | |
43 | u8 fsf_status_qual[FSF_STATUS_QUALIFIER_SIZE]; | |
44 | + u32 port_handle; | |
45 | + u32 lun_handle; | |
46 | } __packed; | |
47 | ||
48 | /** |