]> git.hungrycats.org Git - linux/commit
[PATCH] ext3 direct io assert fix
authorAndrew Morton <akpm@osdl.org>
Sat, 16 Oct 2004 08:02:35 +0000 (01:02 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Oct 2004 08:02:35 +0000 (01:02 -0700)
commit10a27261d31c6f24c6971cc7ad8d1fbaf26fd3fb
tree445eddd07541059f2d194adb2b1a5e9a0e1a6bf2
parent788c16bdd7f4b65cc27b43710a5be9d705b625e0
[PATCH] ext3 direct io assert fix

Fix bug identified by Badari Pulavarty <pbadari@us.ibm.com>

Local variable `handle' will become stale if ext3_direct_io_get_blocks()
closes off the current transaction and starts a new one.  This causes a BUG in
journal_stop().

So reacquire the handle from *current after performing the I/O.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/inode.c