]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: limit printk when journal is aborted
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 14 May 2014 00:01:26 +0000 (10:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:01:26 +0000 (10:01 +1000)
commit8f2ccf73e7c39cb595df3e6aa3d6dc0cb2e70781
treee71b0d189b17b09e8d1ac58a5398336024e467d9
parent089ff09f79b44388f65adc69285bb5a91aec5e5c
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