Re: [PATCH 2.5] Report write errors to applications

Andrew Morton (akpm@digeo.com)
Thu, 30 Jan 2003 14:13:54 -0800


Oliver Xymoron wrote:
>
> The comment suggests that we need to distinguish read errors from
> write errors and I tend to agree.

OK, well you could call set_buffer_write_io_error/set_buffer_read_io_error()
in the end_io handlers, and pick that up later on.

To avoid adding a couple of new clear_bits in submit_bh,
you could do:

if (test_set_buffer_req(bh)) {
clear_buffer_write_io_error(bh);
clear_buffer_read_io_error(bh);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/