[SCSI] add retries field to request for REQ_BLOCK_PC use

For tape we need to control the retries. This patch adds a retries
counter on the request for REQ_BLOCK_PC commands originating from
scsi_execute* to use. REQ_BLOCK_PC commands comming from the block
layer SG_IO path continue to use the retires set in the ULD init_command.
(scsi_execute* does not set the gendisk so we do not execute
the init_command in that path).

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Mike Christie 2005-11-11 05:31:37 -06:00 committed by James Bottomley
parent 6e68af666f
commit 17e01f216b
2 changed files with 4 additions and 1 deletions

View file

@ -184,6 +184,7 @@ struct request {
void *sense;
unsigned int timeout;
int retries;
/*
* For Power Management requests