Dave Kleikamp 73aaa22d5f jfs: fix a couple races
This patch fixes races uncovered by xfstests testcase 068.

One race is the result of jfs_sync() trying to write a sync point to the
journal after it has been frozen (or possibly in the process). Since
freezing sync's the journal, there is no need to write a sync point so
we simply want to return.

The second involves jfs_write_inode() being called on a deleted inode.
It calls jfs_flush_journal which is held up by the jfs_commit thread
doing the final iput on the same deleted inode, which itself is
waiting for the I_SYNC flag to be cleared. jfs_write_inode need not
do anything when i_nlink is zero, which is the easy fix.

Reported-by: Michael L. Semon <mlsemon35@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
2013-05-01 11:16:59 -05:00
..
2012-12-20 18:40:52 -05:00
2013-05-01 11:16:59 -05:00
2006-10-02 09:55:27 -05:00
2008-05-13 08:22:10 -05:00
2008-06-10 15:12:58 -05:00
2011-03-31 11:26:23 -03:00
2006-10-02 09:55:27 -05:00
2007-04-26 07:30:29 -05:00
2013-05-01 11:16:59 -05:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-08-09 11:25:17 +02:00
2006-10-02 09:55:27 -05:00
2009-01-09 15:42:04 -06:00
2006-10-02 09:55:27 -05:00
2006-10-02 09:55:27 -05:00
2009-01-09 15:42:04 -06:00
2009-02-02 13:43:28 -06:00
2012-10-03 08:48:21 -07:00
2010-04-16 08:05:50 -05:00