summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd.h
diff options
context:
space:
mode:
authorGilad Broner <gbroner@codeaurora.org>2017-02-04 01:56:50 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2017-02-08 00:04:12 +0100
commit7fabb77b3aa01651f9ebc7c139a253bcabb06880 (patch)
treedd9eb879a86efddce5daeaae6c0cb95119fec314 /drivers/scsi/ufs/ufshcd.h
parentscsi: ufs: skip request abort task when previous aborts failed (diff)
downloadlinux-7fabb77b3aa01651f9ebc7c139a253bcabb06880.tar.xz
linux-7fabb77b3aa01651f9ebc7c139a253bcabb06880.zip
scsi: ufs: reduce printout for aborted requests
Details printed for each request that is aborted can overload the target as there can be several requests that are aborted at once. This change will print full request details only for the first aborted request since the last link reset, and minimal details for other subsequent requests. Signed-off-by: Gilad Broner <gbroner@codeaurora.org> Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.h')
-rw-r--r--drivers/scsi/ufs/ufshcd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h
index 292fc14522c7..b7ce12996a19 100644
--- a/drivers/scsi/ufs/ufshcd.h
+++ b/drivers/scsi/ufs/ufshcd.h
@@ -594,6 +594,9 @@ struct ufs_hba {
bool wlun_dev_clr_ua;
+ /* Number of requests aborts */
+ int req_abort_count;
+
/* Number of lanes available (1 or 2) for Rx/Tx */
u32 lanes_per_direction;
struct ufs_pa_layer_attr pwr_info;