]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ore/exofs: Change ore_check_io API
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 28 Sep 2011 10:25:50 +0000 (13:25 +0300)
committerBoaz Harrosh <bharrosh@panasas.com>
Tue, 4 Oct 2011 10:17:14 +0000 (12:17 +0200)
commitf6ee1e20eacb4f9bf2325dbcca695e0c0edfb5b5
treeb75704bc1863d73b00a7d065b216ed3d8033f866
parent3c5aeddb30117a4978b25e10cffd635581137c29
ore/exofs: Change ore_check_io API

Current ore_check_io API receives a residual
pointer, to report partial IO. But it is actually
not used, because in a multiple devices IO there
is never a linearity in the IO failure.

On the other hand if every failing device is reported
through a received callback measures can be taken to
handle only failed devices. One at a time.

This will also be needed by the objects-layout-driver
for it's error reporting facility.

Exofs is not currently using the new information and
keeps the old behaviour of failing the complete IO in
case of an error. (No partial completion)

TODO: Use an ore_check_io callback to set_page_error only
the failing pages. And re-dirty write pages.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
fs/exofs/inode.c
fs/exofs/ore.c
include/scsi/osd_ore.h