FROMLIST: scsi: ufs: show lba and length for unmap commands
We have lba and length for unmap commands. Bug: 70910891 Bug: 172970877 Link: https://lore.kernel.org/linux-scsi/20201112165950.518952-1-jaegeuk@kernel.org/T/#u Signed-off-by: Leo Liou <leoliou@google.com> Change-Id: I8426785f41fa9d7771aa0c095cf43eb0d7f40253
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3428a2f782
commit
38945cac3d
@@ -375,6 +375,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user