From: Joseph Qi Date: Wed, 4 Jun 2014 23:06:09 +0000 (-0700) Subject: ocfs2: limit printk when journal is aborted X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~248 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55b465b66809368b459674b9d205010730953c2e;p=pandora-kernel.git 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. [akpm@linux-foundation.org: document the msleep] Signed-off-by: Joseph Qi Cc: Mark Fasheh Cc: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed