]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] libsas, bsg: pass errors through correctly
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 29 Dec 2007 16:59:53 +0000 (10:59 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:29:13 +0000 (18:29 -0600)
commit2d507a01dac338831266b44ccbb01c69e84606ed
treeec59ce6bc1ec86e93d1683107d41b5dbce0b370a
parent2d4b63e1505b317d4253cee3f2970792ec6d41cb
[SCSI] libsas, bsg: pass errors through correctly

Currently in BSG, errors returned in req->errors aren't passed back to
the calling programme (either via SG_IO or via read/write).  Fix this,
while preserving the SCSI convention of returning status in
req->errors.

Now update libsas to return errors correctly instead of to ignore
them.

Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
block/bsg.c
drivers/scsi/scsi_transport_sas.c