[SCSI] complete the whole command when it is REQ_BLOCK_PC
authorMike Christie <michaelc@cs.wisc.edu>
Fri, 11 Nov 2005 11:31:40 +0000 (05:31 -0600)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 15 Dec 2005 03:08:16 +0000 (19:08 -0800)
commit0d95716d6a1308c465d8c17ed1a217628936bb0c
treebf304209ec749fee1b7c66e000874bca973d2ec9
parent17e01f216b611fc46956dcd9063aec4de75991e3
[SCSI] complete the whole command when it is REQ_BLOCK_PC

sd does not allow scsi_io_completion to retry commands for
SG_IO requests, and it make sense that it should not happen for st
SG_IO commands too. If for st we hit the bottom of scsi_io_completion
we will probably screw things up pretty bad. This patch returns to the
block layer that the whole command completed and relies on the caller to check
the request errors field. For initialization commands like in sd, this adds
the previous behavior where scsi_io_completion did not process the error.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c
drivers/scsi/st.c