* [PATCH resend] bsg: return SAM device status code
@ 2007-04-24 17:25 Pete Wyckoff
0 siblings, 0 replies; only message in thread
From: Pete Wyckoff @ 2007-04-24 17:25 UTC (permalink / raw)
To: jens.axboe, FUJITA Tomonori; +Cc: linux-scsi
Use the status codes from the spec, not the shifted-by-one codes
that are marked deprecated in scsi.h This makes bsg v4 status
report the same value as sg v3 status too.
Signed-off-by: Pete Wyckoff <pw@osc.edu>
Acked-by: Douglas Gilbert <dougg@torque.net>
---
block/bsg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/block/bsg.c b/block/bsg.c
index f0753c0..92be6fa 100644
--- a/block/bsg.c
+++ b/block/bsg.c
@@ -440,7 +440,7 @@ static int blk_complete_sgv4_hdr_rq(struct request *rq, struct sg_io_v4 *hdr,
/*
* fill in all the output members
*/
- hdr->device_status = status_byte(rq->errors);
+ hdr->device_status = rq->errors & 0xff;
hdr->transport_status = host_byte(rq->errors);
hdr->driver_status = driver_byte(rq->errors);
hdr->info = 0;
--
1.5.0.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-24 17:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 17:25 [PATCH resend] bsg: return SAM device status code Pete Wyckoff
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.