Re: [PATCH 07/10] zfcp: restore tracing of handle for port and LUN with HBA records

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/10/2016 06:30 PM, Steffen Maier wrote:
> This information was lost with
> commit a54ca0f62f953898b05549391ac2a8a4dad6482b
> ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.")
> but is required to debug e.g. invalid handle situations.
> 
> Signed-off-by: Steffen Maier <maier@xxxxxxxxxxxxxxxxxx>
> Fixes: a54ca0f62f95 ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.")
> Cc: <stable@xxxxxxxxxxxxxxx> #2.6.38+
> Reviewed-by: Benjamin Block <bblock@xxxxxxxxxxxxxxxxxx>
> ---
>  drivers/s390/scsi/zfcp_dbf.c | 2 ++
>  drivers/s390/scsi/zfcp_dbf.h | 2 ++
>  2 files changed, 4 insertions(+)
> 
> diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c
> index df68a4df8cdb..ceb934c93232 100644
> --- a/drivers/s390/scsi/zfcp_dbf.c
> +++ b/drivers/s390/scsi/zfcp_dbf.c
> @@ -85,6 +85,8 @@ void zfcp_dbf_hba_fsf_res(char *tag, int level, struct zfcp_fsf_req *req)
>  	rec->u.res.req_issued = req->issued;
>  	rec->u.res.prot_status = q_pref->prot_status;
>  	rec->u.res.fsf_status = q_head->fsf_status;
> +	rec->u.res.port_handle = q_head->port_handle;
> +	rec->u.res.lun_handle = q_head->lun_handle;
>  
>  	memcpy(rec->u.res.prot_status_qual, &q_pref->prot_status_qual,
>  	       FSF_PROT_STATUS_QUAL_SIZE);
> diff --git a/drivers/s390/scsi/zfcp_dbf.h b/drivers/s390/scsi/zfcp_dbf.h
> index c879b54046ee..6ee46f1f9e43 100644
> --- a/drivers/s390/scsi/zfcp_dbf.h
> +++ b/drivers/s390/scsi/zfcp_dbf.h
> @@ -131,6 +131,8 @@ struct zfcp_dbf_hba_res {
>  	u8  prot_status_qual[FSF_PROT_STATUS_QUAL_SIZE];
>  	u32 fsf_status;
>  	u8  fsf_status_qual[FSF_STATUS_QUALIFIER_SIZE];
> +	u32 port_handle;
> +	u32 lun_handle;
>  } __packed;
>  
>  /**
> 
Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@xxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux