Re: [PATCH 2.5] Report write errors to applications

From: Andrew Morton (akpm@digeo.com)
Date: Thu Jan 30 2003 - 17:13:54 EST


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/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:24 EST