]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: limit printk when journal is aborted
authorJoseph Qi <joseph.qi@huawei.com>
Thu, 22 May 2014 00:42:31 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:31 +0000 (10:42 +1000)
commit146cbe81de01d55f3451faba66f2c0ea503e4d83
tree50c695c0b499ccbaf34c7a4e707f3d8fb6d3bd26
parentaebc93f2233436b993db4404d49b4b48dae17ab6
ocfs2: limit printk when journal is aborted

Once JBD2_ABORT is set, ocfs2_commit_cache will fail in
ocfs2_commit_thread.  Then it will get into a loop with mass logs.  This
will meaninglessly consume a larger number of resource and may lead to the
system hanging.  So limit printk in this case.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/journal.c