]> git.baikalelectronics.ru Git - kernel.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)
commit80cc35cab2a81427a3073785f0d7b04abda13b97
treeec59ce6bc1ec86e93d1683107d41b5dbce0b370a
parentfb746e01ece1114e5684f04740d3ddecf43272d8
[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