]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.8.5/zfcp-restore-tracing-of-handle-for-port-and-lun-with-hba-records.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.8.5 / zfcp-restore-tracing-of-handle-for-port-and-lun-with-hba-records.patch
CommitLineData
677c3905
GKH
1From 7c964ffe586bc0c3d9febe9bf97a2e4b2866e5b7 Mon Sep 17 00:00:00 2001
2From: Steffen Maier <maier@linux.vnet.ibm.com>
3Date: Wed, 10 Aug 2016 18:30:50 +0200
4Subject: zfcp: restore tracing of handle for port and LUN with HBA records
5
6From: Steffen Maier <maier@linux.vnet.ibm.com>
7
8commit 7c964ffe586bc0c3d9febe9bf97a2e4b2866e5b7 upstream.
9
10This information was lost with
11commit a54ca0f62f953898b05549391ac2a8a4dad6482b
12("[SCSI] zfcp: Redesign of the debug tracing for HBA records.")
13but is required to debug e.g. invalid handle situations.
14
15Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
16Fixes: a54ca0f62f95 ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.")
17Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com>
18Reviewed-by: Hannes Reinecke <hare@suse.com>
19Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
20Signed-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 /**