All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhangguanghui <zhang.guanghui@h3c.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] ocfs2 cannot continue when JBD2 has aborted the journal,
Date: Thu, 17 Dec 2015 05:33:27 +0000	[thread overview]
Message-ID: <2015121713343524045332@h3c.com> (raw)

Hi all,

A tiny race about JBD2 has aborted to jbd2_journal_flush,

because of unstable storage link and I/O stress.

while JBD2 state is aborted, have been -EIO error,

may cause all cluster nodes hung. so I thinks

JBD2 has aborted the journal, ocfs2 cannot continue and trigger ocfs2_abort.

Thanks, Any ideas about this patch?


description:

ocfs2_commit_thread
  ocfs2_commit_cache
    jbd2_journal_flush


--- journal.c 2015-12-17 11:36:39.140542941 +0800
+++ journal.c.diff 2015-12-17 11:39:21.308542922 +0800
@@ -328,6 +328,9 @@
if (status < 0) {
up_write(&journal->j_trans_barrier);
mlog_errno(status);
+ if (is_journal_aborted(journal)) {
+ ocfs2_abort(osb->sb, "Detect aborted journal,while committing cache.");
+ }
goto finally;
}
________________________________
zhangguanghui
-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20151217/29877c0d/attachment.html 

             reply	other threads:[~2015-12-17  5:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17  5:33 Zhangguanghui [this message]
2015-12-18  1:05 ` [Ocfs2-devel] ocfs2 cannot continue when JBD2 has aborted the journal, Joseph Qi
2015-12-18  4:58   ` Zhangguanghui
2015-12-18  2:15 ` Ryan Ding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2015121713343524045332@h3c.com \
    --to=zhang.guanghui@h3c.com \
    --cc=ocfs2-devel@oss.oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.