scsi,block: update SCSI to handle mixed merge failures
authorTejun Heo <tj@kernel.org>
Fri, 11 Sep 2009 12:26:40 +0000 (14:26 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 12:33:30 +0000 (14:33 +0200)
commitda6c5c720c52cc717124f8f0830b710ea6a092fd
treef54c880aec9289895721e707d4b22e456b277127
parent80a761fd33cf812f771e212139157bf8f58d4b3f
scsi,block: update SCSI to handle mixed merge failures

Update scsi_io_completion() such that it only fails requests till the
next error boundary and retry the leftover.  This enables block layer
to merge requests with different failfast settings and still behave
correctly on errors.  Allow merge of requests of different failfast
settings.

As SCSI is currently the only subsystem which follows failfast status,
there's no need to worry about other block drivers for now.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Niel Lambrechts <niel.lambrechts@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-merge.c
block/elevator.c
drivers/scsi/scsi_lib.c