diff options
author | Steve Cameron <scameron@quandary.americas.cpqcorp.net> | 2007-10-16 23:27:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 08:42:55 -0700 |
commit | 1a614f505193fcfc1b298643268a5db5b48e297f (patch) | |
tree | 80413131fca8758fe31e0fb4d383f80f5e75834f /include | |
parent | 7fdfd4065c264bddd2d9277470a6a99d34e01bef (diff) | |
download | linux-3.10-1a614f505193fcfc1b298643268a5db5b48e297f.tar.gz linux-3.10-1a614f505193fcfc1b298643268a5db5b48e297f.tar.bz2 linux-3.10-1a614f505193fcfc1b298643268a5db5b48e297f.zip |
cciss: fix error reporting for SG_IO
This fixes a problem with the way cciss was filling out the "errors" field
of the request structure upon completion of requests. Previously, it just
put a 1 or a 0 in there and used the negation of this as the uptodate
parameter to one of the functions in the block layer, being a block device.
For the SG_IO ioctl, this was not sufficient, and we noticed that, for
example, sg_turs from sg3_utils did not correctly detect problems due to
cciss having set rq->errors incorrectly.
Signed-off-by: Stephen M. Cameron <steve.cameron@hp.com>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions