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,7 +506,8 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate) ...@@ -506,7 +506,8 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
set_buffer_uptodate(bh); set_buffer_uptodate(bh);
} else { } else {
clear_buffer_uptodate(bh); clear_buffer_uptodate(bh);
buffer_io_error(bh); if (!(current->flags & PF_READAHEAD))
buffer_io_error(bh);
SetPageError(page); 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