[Ocfs2-devel] One question about the usage of dlm_domain_lock of OCFS2
Guozhonghua
guozhonghua at h3c.com
Sat Sep 6 01:13:55 PDT 2014
As I reviewing the code, there are some of usages I does not understand.
extern spinlock_t dlm_domain_lock;
extern struct list_head dlm_domains;
I think dlm_domain_lock is used to control the access of dlm_domains.
Why not prefer dlm->spinlock to dlm_domain_lock in the function dlm_try_to_join_domain?
The code is as below:
spin_lock(&dlm_domain_lock);
dlm->dlm_state = DLM_CTXT_JOINED;
dlm->num_joins++;
spin_unlock(&dlm_domain_lock);
-------------------------------------------------------------------------------------------------------------------------------------
????????????????????????????????????????
????????????????????????????????????????
????????????????????????????????????????
???
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/20140906/8996e111/attachment.html
More information about the Ocfs2-devel
mailing list