[Ocfs2-devel] OCFS2 cache coherent quesiton

Gang He ghe at suse.com
Wed Apr 13 12:29:32 PDT 2016


Hello Changwei,

You can take a look at dlm_lock related code, dlm_lock callback functions will handle how to make other nodes' certain inode page cache invalidate. Or, force the writing page cache to disk before read the data from other nodes.


Thanks
Gang


>>> 
> Hi OCFS2 experts,
> 
> According to OCFS2 user guide, OCFS2 supports cache consistency, which means 
> one node writes to shared disk while another node can get the newest data 
> just written.
> 
> I am working hard on OCFS2 kernel code. I am confused that OCFS2 also adopts 
> page cache provided by Linux Kernel, however, page cache does not know 
> anything about other nodes in cluster.
> 
> Well, my question is that if data is cached by page cache in one node, how 
> could another node read the newest data from it? At this scenario, the page 
> cache is dirty and the disk data is old. How OCFS2 can support cache 
> consistency?
> 
> Thanks,
> 
> Best regards.
> 
> 
> Gechangwei
> 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!


More information about the Ocfs2-devel mailing list