]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: limit printk when journal is aborted
authorJoseph Qi <joseph.qi@huawei.com>
Wed, 4 Jun 2014 23:06:09 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:53:54 +0000 (16:53 -0700)
commite4a6bf662fe8f22cc0f7dadf80b37e645c4f6282
tree0131f2364c0bde608a54317a323dea5769479d42
parent0c7c375241ab0416f9fed85a7909f0c3c63bca39
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 <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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/journal.c