Commit d49ceaba authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix bogus IO error messages

Since Jens added the pagecache readahead support in the block layer we've
been getting bogus IO error messages from buffer.c due to __make_request
calling end_io against a non-uptodate buffer.

We can just use PF_READAHEAD to shut that up.  But really, we shouldn't even
have allocated all those pages and submittted the readahead IO if the queue
was congested.   We have the infrastructure to do that now.
parent 3e63f0be
......@@ -506,6 +506,7 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
set_buffer_uptodate(bh);
} else {
clear_buffer_uptodate(bh);
if (!(current->flags & PF_READAHEAD))
buffer_io_error(bh);
SetPageError(page);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment