Zhangguanghui
2014-Nov-07 10:37 UTC
[Ocfs2-devel] how can the [o2hb-x] kernel thread begin running in the ocfs2
Hi While mounting -t ocfs2 , the function ocfs2_fill_super is triggered. In the process, which specific function will trigger the callback of o2hb_region_dev_write, how can the [o2hb-x] kernel thread begin running? thanks ------------------------------------------------------------------------------------------------------------------------------------- ??????????????????????????,????????????? ?????????????????????(?????????????????? ???)?????????????????,?????????????????? ??! 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/20141107/e64e0892/attachment.html
Xue jiufei
2014-Dec-09 06:38 UTC
[Ocfs2-devel] how can the [o2hb-x] kernel thread begin running in the ocfs2
Hi, Ocfs2 uses configfs to do user-space configuration tasks. When thread mount.ocfs2 writes fd to /sys/kernel/config/cluster/{clustername}/heartbeat/{region_name}/dev, kernel will trigger the callback. you can find the source code in function o2cb_create_heartbeat_region() in ocfs2-tools package. Thanks. Xue Jiufei On 2014/11/7 18:37, Zhangguanghui wrote:> > Hi > > > While mounting -t ocfs2 , the function ocfs2_fill_super is triggered. > > In the process, which specific function will trigger the callback of o2hb_region_dev_write, > > how can the [o2hb-x] kernel thread begin running? > > thanks > > > ------------------------------------------------------------------------------------------------------------------------------------- > ???????????????????????????????????????? > ???????????????????????????????????????? > ???????????????????????????????????????? > ??? > 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 at oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-devel >