]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: zfcp: do not trace pure benign residual HBA responses at default level
authorSteffen Maier <maier@linux.vnet.ibm.com>
Fri, 9 Dec 2016 16:16:32 +0000 (17:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 14 Dec 2016 20:15:48 +0000 (15:15 -0500)
commitf68f78c61003744171cf0055160b1fa969ca13eb
tree3e3016340fcc0d16ee74b7b078d2b8a96ca5a97c
parent9d5c5f504f64f5049c9fee736a773bb7a22a264a
scsi: zfcp: do not trace pure benign residual HBA responses at default level

Since quite a while, Linux issues enough SCSI commands per scsi_device
which successfully return with FCP_RESID_UNDER, FSF_FCP_RSP_AVAILABLE,
and SAM_STAT_GOOD.  This floods the HBA trace area and we cannot see
other and important HBA trace records long enough.

Therefore, do not trace HBA response errors for pure benign residual
under counts at the default trace level.

This excludes benign residual under count combined with other validity
bits set in FCP_RSP_IU, such as FCP_SNS_LEN_VAL.  For all those other
cases, we still do want to see both the HBA record and the corresponding
SCSI record by default.

Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Fixes: 322b3c23ed67 ("[SCSI] zfcp: Redesign of the debug tracing for HBA records.")
Cc: <stable@vger.kernel.org> #2.6.37+
Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_dbf.h
drivers/s390/scsi/zfcp_fsf.h