]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ocfs2-limit-printk-when-journal-is-aborted-fix
authorAndrew Morton <akpm@linux-foundation.org>
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)
document the msleep

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

index 2896220fd143b9aec854bfe684d53e1b8059ba7b..4b0c68849b3610ec1e448607b376c6545a1738ed 100644 (file)
@@ -2193,6 +2193,11 @@ static int ocfs2_commit_thread(void *arg)
                        if (printk_timed_ratelimit(&abort_warn_time, 60*HZ))
                                mlog(ML_ERROR, "status = %d, journal is "
                                                "already aborted.\n", status);
+                       /*
+                        * After ocfs2_commit_cache() fails, j_num_trans has a
+                        * non-zero value.  Sleep here to avoid a busy-wait
+                        * loop.
+                        */
                        msleep_interruptible(1000);
                }