diff mbox series

[2/4] mvumi: use request tag instead of serial_number

Message ID 20190226145642.95361-3-hare@suse.de (mailing list archive)
State Accepted
Headers show
Series scsi: scsi: kill scsi command serial number | expand

Commit Message

Hannes Reinecke Feb. 26, 2019, 2:56 p.m. UTC
From: Hannes Reinecke <hare@suse.com>

Use the request tag for logging instead of the scsi command serial
number.

Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 drivers/scsi/mvumi.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Bart Van Assche Feb. 26, 2019, 3:52 p.m. UTC | #1
On Tue, 2019-02-26 at 15:56 +0100, Hannes Reinecke wrote:
> Use the request tag for logging instead of the scsi command serial
> number.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
diff mbox series

Patch

diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c
index dbe753fba486..00a76db911ab 100644
--- a/drivers/scsi/mvumi.c
+++ b/drivers/scsi/mvumi.c
@@ -717,8 +717,8 @@  static int mvumi_host_reset(struct scsi_cmnd *scmd)
 
 	mhba = (struct mvumi_hba *) scmd->device->host->hostdata;
 
-	scmd_printk(KERN_NOTICE, scmd, "RESET -%ld cmd=%x retries=%x\n",
-			scmd->serial_number, scmd->cmnd[0], scmd->retries);
+	scmd_printk(KERN_NOTICE, scmd, "RESET -%u cmd=%x retries=%x\n",
+			scmd->request->tag, scmd->cmnd[0], scmd->retries);
 
 	return mhba->instancet->reset_host(mhba);
 }
@@ -2103,7 +2103,6 @@  static int mvumi_queue_command(struct Scsi_Host *shost,
 	unsigned long irq_flags;
 
 	spin_lock_irqsave(shost->host_lock, irq_flags);
-	scsi_cmd_get_serial(shost, scmd);
 
 	mhba = (struct mvumi_hba *) shost->hostdata;
 	scmd->result = 0;