[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201112165950.518952-1-jaegeuk@kernel.org>
Date: Thu, 12 Nov 2020 08:59:50 -0800
From: Jaegeuk Kim <jaegeuk@...nel.org>
To: linux-kernel@...r.kernel.org, linux-scsi@...r.kernel.org,
kernel-team@...roid.com
Cc: Leo Liou <leoliou@...gle.com>
Subject: [PATCH] scsi: ufs: show lba and length for unmap commands
From: Leo Liou <leoliou@...gle.com>
We have lba and length for unmap commands.
Signed-off-by: Leo Liou <leoliou@...gle.com>
---
drivers/scsi/ufs/ufshcd.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 86c8dee01ca9..dba3ee307307 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -376,6 +376,11 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba,
lrbp->ucd_req_ptr->sc.exp_data_transfer_len);
if (opcode == WRITE_10)
group_id = lrbp->cmd->cmnd[6];
+ } else if (opcode == UNMAP) {
+ if (cmd->request) {
+ lba = scsi_get_lba(cmd);
+ transfer_len = blk_rq_bytes(cmd->request);
+ }
}
}
--
2.29.2.299.gdc1121823c-goog
Powered by blists - more mailing lists