]> Pileus Git - ~andy/linux/blobdiff - fs/jfs/jfs_logmgr.c
jfs: fix a couple races
[~andy/linux] / fs / jfs / jfs_logmgr.c
index 2eb952c41a69da5f23314e6d3a9a3012692b3b76..cbe48ea9318eea1ce44cae4bf3190911edf6c4c4 100644 (file)
@@ -1058,7 +1058,8 @@ static int lmLogSync(struct jfs_log * log, int hard_sync)
  */
 void jfs_syncpt(struct jfs_log *log, int hard_sync)
 {      LOG_LOCK(log);
-       lmLogSync(log, hard_sync);
+       if (!test_bit(log_QUIESCE, &log->flag))
+               lmLogSync(log, hard_sync);
        LOG_UNLOCK(log);
 }