User: Password:
|
|
Subscribe / Log in / New account

A nasty file corruption bug - fixed

A nasty file corruption bug - fixed

Posted Jan 2, 2007 5:51 UTC (Tue) by rganesan (subscriber, #1182)
In reply to: A nasty file corruption bug - fixed by iabervon
Parent article: A nasty file corruption bug - fixed

I agree with this comment that the article does not tell the full story. In particular, I don't think the statement "When the I/O is complete, the filesystem clears the dirty flag in the bh." is correct. I believe the filesystem clears the dirty flag in the bh when the I/O is started.


(Log in to post comments)

A nasty file corruption bug - fixed

Posted Jan 5, 2007 20:28 UTC (Fri) by riel (subscriber, #3142) [Link]

You are correct. Dirty bits are cleared when I/O is started, so the application can dirty the page again while the disk I/O happens, without the kernel forgetting that the page was dirtied again.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds