From: Junxiao Bi <junxiao.bi@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] o2hb: increase unsteady iterations
Date: Thu, 31 Mar 2016 12:17:05 +0800 [thread overview]
Message-ID: <56FCA4C1.40302@oracle.com> (raw)
In-Reply-To: <D1E4D02760513D4B90DC3B40FF32AF355EE24988@H3CMLB14-EX.srv.huawei-3com.com>
On 03/29/2016 08:32 PM, Shichangkuo wrote:
> Hi Junxiao,
> If tcp connections take a long time to establish, and hr_unsteady_iterations still may change to 0, then o2hb thread will exit by error.
> What about wait the connection?
NAK, this will hung the mount if network is down.
Thanks,
Junxiao.
>
> --- a/fs/ocfs2/cluster/heartbeat.c 2016-03-29 20:22:03.066400592 +0800
> +++ a/fs/ocfs2/cluster/heartbeat.c 2016-03-29 20:20:55.494065519 +0800
> @@ -1054,7 +1054,7 @@ bail:
> }
>
> if (atomic_read(®->hr_steady_iterations) != 0) {
> - if (atomic_dec_and_test(®->hr_unsteady_iterations)) {
> + if (!membership_change && atomic_dec_and_test(®->hr_unsteady_iterations)) {
> printk(KERN_NOTICE "o2hb: Unable to stabilize "
> "heartbeart on region %s (%s)\n",
> config_item_name(®->hr_item),
>
> Thanks
> Changkuo
>
> ???: ocfs2-devel-bounces at oss.oracle.com [mailto:ocfs2-devel-bounces at oss.oracle.com] ?? Junxiao Bi
> ????: 2015?11?19? 16:08
> ???: ocfs2-devel at oss.oracle.com
> ??: mfasheh at suse.com
> ??: [Ocfs2-devel] [PATCH] o2hb: increase unsteady iterations
>
> When run multiple xattr test of ocfs2-test on a three-nodes cluster, mount failed sometimes with the following message.
>
> o2hb: Unable to stabilize heartbeart on region D18B775E758D4D80837E8CF3D086AD4A (xvdb)
>
> Stabilize heartbeat depends on the timing order to mount ocfs2 from cluster nodes and how fast the tcp connections are established. So increase unsteady interations to leave more time for it.
>
> Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
> ---
> fs/ocfs2/cluster/heartbeat.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index 709fbbd..a3cc6d2 100644
> --- a/fs/ocfs2/cluster/heartbeat.c
> +++ b/fs/ocfs2/cluster/heartbeat.c
> @@ -1780,8 +1780,8 @@ static ssize_t o2hb_region_dev_store(struct config_item *item,
> }
> ++live_threshold;
> atomic_set(®->hr_steady_iterations, live_threshold);
> - /* unsteady_iterations is double the steady_iterations */
> - atomic_set(®->hr_unsteady_iterations, (live_threshold << 1));
> + /* unsteady_iterations is triple the steady_iterations */
> + atomic_set(®->hr_unsteady_iterations, (live_threshold * 3));
>
> hb_task = kthread_run(o2hb_thread, reg, "o2hb-%s",
> reg->hr_item.ci_name);
> --
> 1.7.9.5
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-devel
> -------------------------------------------------------------------------------------------------------------------------------------
> ????????????????????????????????????????
> ????????????????????????????????????????
> ????????????????????????????????????????
> ???
> 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 prev parent reply other threads:[~2016-03-31 4:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 12:32 [Ocfs2-devel] [PATCH] o2hb: increase unsteady iterations Shichangkuo
2016-03-31 4:17 ` Junxiao Bi [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-19 8:08 Junxiao Bi
2015-11-19 8:08 ` Junxiao Bi
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=56FCA4C1.40302@oracle.com \
--to=junxiao.bi@oracle.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.