On Thu, Jun 05, 2008 at 08:33:27PM +0900, Hidehiro Kawai wrote:
Looking at the code paths touched by patch you referenced, you are
correct. And Andrew even signed off on it. :-)
But if someone was only examining the patch, it wasn't obvious that
the journal was getting aborted when the JBD layer was forcing buffers
from t_sync_datalist to disk. So I suspect the change went in without
proper consideration of the net effect. You just called it out
explicitly in the subject line, which caused Andrew to ask some good
questions; questions that weren't asked in 2005.
Note that doing this right may be tricky, since in the case where we
aren't aborting the journal, we need to set the appropriate flags in
the page cache so that when the user calls fsync() or close(), that
they get the EIO error.
- Ted
--