From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wendy Cheng Date: Fri, 25 Jan 2008 00:17:30 -0500 Subject: [Cluster-devel] [PATCH 2/3] NLM per-ip grace period - core Message-ID: <479970EA.2060900@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit The logic is implemented on top of linux nfsd procfs with core functions residing in lockd kernel module. Entry function is nlmsvc_resume_ip() where it stores the requested ip interface into a linked-list nlm_failover_list. The list entry count is nlm_failover_cnt and access protection is done by nlm_failover_mutex. Entry in nlm_failover_ip_list is a "nlm_failover_struct", defined in: include/linux/lockd/lockd.h. The list is kept in descending order (newer entry first) based on g_expire jiffies. For per ip grace period checking, the search goes thru the list. As soon as one match ip is found, the search stops. This implies older entries will not be used and always expire before new entry. This is to allow multiple entries (for the same ip) to be added into the list. The maximum size of the list entries is NLM_FO_MAX_GP_CNT (1024). -- Wendy -------------- next part -------------- A non-text attachment was scrubbed... Name: resume_002.patch Type: text/x-patch Size: 7606 bytes Desc: not available URL: