Thread (22 messages) 22 messages, 7 authors, 2012-01-26

Re: [RFC PATCH 0/3] Stop clearing uptodate flag on write IO error

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2012-01-16 18:55:55
Also in: linux-fsdevel, lkml

On Mon, Jan 16, 2012 at 8:01 AM, Jan Kara [off-list ref] wrote:
 Hum, let me understand this. I understand the meaning of buffer_uptodate
bit as "the buffer has at least as new content as what is on disk". Now
when storage cannot write the block under the buffer, the contents of the
buffer is still "at least as new as what is (was) on disk".
No.

Stop making crap up.

If the write fails, the buffer contents have *nothing* to do with what
is on disk.

You don't know what the disk contents are.

So clearly the buffer cannot be up-to-date.

Now, feel free to use *other* arguments for why we shouldn't clear the
up-to-date bit, but using the disk contents as one is pure and utter
garbage. And it is *obviously* pure and utter garbage.

                   Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help