[SCSI] scsi: scsi command retries off by one fix
authorBrian King <brking@us.ibm.com>
Fri, 24 Feb 2006 23:10:04 +0000 (17:10 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 28 Feb 2006 03:38:39 +0000 (21:38 -0600)
commit8884efab1516613215816d48132dd724508970bf
tree613b80a6adea59defeed3a1fa9fdc6dde7313a28
parent147aab6aa22ce7775be944f8fb9932aa000dda61
[SCSI] scsi: scsi command retries off by one fix

Fix up an off by one error in calculating retries for scsi
commands. This bug was discovered when an SG_IO request
was sent to scsi core with retries = 0, causing the overall
timeout check to go off in scsi_softirq_done.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_error.c
drivers/scsi/scsi_lib.c