]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cciss: fix error reporting for SG_IO
authorSteve Cameron <scameron@quandary.americas.cpqcorp.net>
Wed, 17 Oct 2007 06:27:37 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:55 +0000 (08:42 -0700)
commit1a614f505193fcfc1b298643268a5db5b48e297f
tree80413131fca8758fe31e0fb4d383f80f5e75834f
parent7fdfd4065c264bddd2d9277470a6a99d34e01bef
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>
drivers/block/cciss.c