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

scsi: ufs: Show LBA and length for UNMAP commands

parent 8eb456be
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -383,6 +383,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);
			}
		}
	}