[Ocfs2-devel] review patch: return in progress if master can not clear the refmap bit right now

Zhangguanghui zhang.guanghui at h3c.com
Thu Jul 21 19:12:05 PDT 2016


hi

We found a BUG situation described below. To fix the bug, I think
dlm_drop_lockres_ref should be 0 in the case of dlm_is_host_down(master goes down).
or list_del_init(&res->purge) should be behind the !master && ret != 0  return,
the res will release int the recovery process while umounting the vol.
Thanks

detail:

 Node 1                                                                           Node 2(master)
    dlm_purge_lockres
       dlm_drop_lockres_ref                                               master goes down
        list_del_init(&res->purge)
       !master && ret != 0  return
       get a failure while umounting.


ocfs2/dlm: return in progress if master can not clear the refmap bit right now
Master returns in-progress to non-master node when it can not clear the refmap bit right now. And non-master node will not purge the lock resource until receiving deref done message.

________________________________
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/20160722/b22e5108/attachment.html 


More information about the Ocfs2-devel mailing list