Hi OCFS2 experts,

I found a strange segment of code during FENCE procedure in function 
o2hb_stop_all_regions, cited as below:

void o2hb_stop_all_regions(void)
{
        struct o2hb_region *reg;

        mlog(ML_ERROR, "stopping heartbeat on all active regions.\n");

        spin_lock(&o2hb_live_lock);

        list_for_each_entry(reg, &o2hb_all_regions, hr_all_item)
                reg->hr_unclean_stop = 1;

        spin_unlock(&o2hb_live_lock);
}

In this preceding code segment, all o2hb regions' hr_unclean_stop is set to 1, 
just before an emergency reboot. So it's hard to figure out if other threads 
have a chance to work according to the value of it.

Can we just remove the assignment?


BR.


Chauncey Ge

H3C Technologies Co., Limited



-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
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!
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to