aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.com>2019-03-12 04:08:12 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2019-03-15 13:53:41 -0400
commit52eaa798f4f4e983c711eaa1c13d8859a52946e8 (patch)
tree36f27de06caebffc868efc2d692b75767685e475
parent0015437cc046e5ec2b57b00ff8312b8d432eac7c (diff)
scsi: ia64: simscsi: use request tag instead of serial_number
Use the request tag for logging instead of the scsi command serial number. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [jejb: fix commit oneliner] Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--arch/ia64/hp/sim/simscsi.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/ia64/hp/sim/simscsi.c b/arch/ia64/hp/sim/simscsi.c
index f86844fc0725..0a8a74271173 100644
--- a/arch/ia64/hp/sim/simscsi.c
+++ b/arch/ia64/hp/sim/simscsi.c
@@ -105,7 +105,8 @@ simscsi_interrupt (unsigned long val)
105 atomic_dec(&num_reqs); 105 atomic_dec(&num_reqs);
106 queue[rd].sc = NULL; 106 queue[rd].sc = NULL;
107 if (DBG) 107 if (DBG)
108 printk("simscsi_interrupt: done with %ld\n", sc->serial_number); 108 printk("simscsi_interrupt: done with %u\n",
109 sc->request->tag);
109 (*sc->scsi_done)(sc); 110 (*sc->scsi_done)(sc);
110 rd = (rd + 1) % SIMSCSI_REQ_QUEUE_LEN; 111 rd = (rd + 1) % SIMSCSI_REQ_QUEUE_LEN;
111 } 112 }
@@ -214,8 +215,8 @@ simscsi_queuecommand_lck (struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *)
214 register long sp asm ("sp"); 215 register long sp asm ("sp");
215 216
216 if (DBG) 217 if (DBG)
217 printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%lu,sp=%lx,done=%p\n", 218 printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%u,sp=%lx,done=%p\n",
218 target_id, sc->cmnd[0], sc->serial_number, sp, done); 219 target_id, sc->cmnd[0], sc->request->tag, sp, done);
219#endif 220#endif
220 221
221 sc->result = DID_BAD_TARGET << 16; 222 sc->result = DID_BAD_TARGET << 16;