cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Wendy Cheng <wcheng@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 2/3] NLM per-ip grace period - core
Date: Fri, 25 Jan 2008 00:17:30 -0500	[thread overview]
Message-ID: <479970EA.2060900@redhat.com> (raw)

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: <http://listman.redhat.com/archives/cluster-devel/attachments/20080125/dd51e9e7/attachment.bin>

             reply	other threads:[~2008-01-25  5:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-25  5:17 Wendy Cheng [this message]
2008-01-29  2:56 ` [Cluster-devel] Re: [PATCH 2/3] NLM per-ip grace period - core J. Bruce Fields
     [not found]   ` <514B944F-02FC-4164-BFDA-209361F4BD25@oracle.com>
2008-01-29 17:10     ` Wendy Cheng
2008-01-29 17:21     ` J. Bruce Fields
2008-01-30  0:14 ` J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=479970EA.2060900@redhat.com \
    --to=wcheng@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).