mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
0015437cc0
commit
52eaa798f4
1 changed files with 4 additions and 3 deletions
|
@ -105,7 +105,8 @@ simscsi_interrupt (unsigned long val)
|
||||||
atomic_dec(&num_reqs);
|
atomic_dec(&num_reqs);
|
||||||
queue[rd].sc = NULL;
|
queue[rd].sc = NULL;
|
||||||
if (DBG)
|
if (DBG)
|
||||||
printk("simscsi_interrupt: done with %ld\n", sc->serial_number);
|
printk("simscsi_interrupt: done with %u\n",
|
||||||
|
sc->request->tag);
|
||||||
(*sc->scsi_done)(sc);
|
(*sc->scsi_done)(sc);
|
||||||
rd = (rd + 1) % SIMSCSI_REQ_QUEUE_LEN;
|
rd = (rd + 1) % SIMSCSI_REQ_QUEUE_LEN;
|
||||||
}
|
}
|
||||||
|
@ -214,8 +215,8 @@ simscsi_queuecommand_lck (struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *)
|
||||||
register long sp asm ("sp");
|
register long sp asm ("sp");
|
||||||
|
|
||||||
if (DBG)
|
if (DBG)
|
||||||
printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%lu,sp=%lx,done=%p\n",
|
printk("simscsi_queuecommand: target=%d,cmnd=%u,sc=%u,sp=%lx,done=%p\n",
|
||||||
target_id, sc->cmnd[0], sc->serial_number, sp, done);
|
target_id, sc->cmnd[0], sc->request->tag, sp, done);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
sc->result = DID_BAD_TARGET << 16;
|
sc->result = DID_BAD_TARGET << 16;
|
||||||
|
|
Loading…
Add table
Reference in a new issue