Commit 3754cde8 authored by Leo Liou's avatar Leo Liou Committed by Martin K. Petersen

scsi: ufs: Show LBA and length for UNMAP commands

We have LBA and length for unmap commands.

Link: https://lore.kernel.org/r/20201117165839.1643377-8-jaegeuk@kernel.orgReviewed-by: default avatarStanley Chu <stanley.chu@mediatek.com>
Reviewed-by: default avatarCan Guo <cang@codeaurora.org>
Signed-off-by: default avatarLeo Liou <leoliou@google.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 8eb456be
...@@ -383,6 +383,11 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba, ...@@ -383,6 +383,11 @@ static void ufshcd_add_command_trace(struct ufs_hba *hba,
lrbp->ucd_req_ptr->sc.exp_data_transfer_len); lrbp->ucd_req_ptr->sc.exp_data_transfer_len);
if (opcode == WRITE_10) if (opcode == WRITE_10)
group_id = lrbp->cmd->cmnd[6]; 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);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment