ext3: Fix waiting on transaction during fsync
authorJan Kara <jack@suse.cz>
Thu, 15 Apr 2010 20:24:26 +0000 (22:24 +0200)
committerJan Kara <jack@suse.cz>
Fri, 21 May 2010 17:30:41 +0000 (19:30 +0200)
commit5277970878a32e437b27296e34c592e5d351f11d
tree64f41152b95e670935192ee6061653d922b642f3
parent03f4d804a1b4748885dc4613a4afe10089a731c8
ext3: Fix waiting on transaction during fsync

log_start_commit() returns 1 only when it started a transaction
commit. Thus in case transaction commit is already running, we
fail to wait for the commit to finish. Fix the issue by always
waiting for the commit regardless of the log_start_commit return
value.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/fsync.c
fs/jbd/journal.c