From: mehta kiran Subject: RE: lockd grace period Date: Mon, 31 Jan 2005 06:36:10 -0800 (PST) Message-ID: <20050131143610.1250.qmail@web51604.mail.yahoo.com> References: <395A443A7CBF0246843BFD3471A8231DC0176D@bgeexc04.asiapacific.cpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1Cvcf7-0000fj-0G for nfs@lists.sourceforge.net; Mon, 31 Jan 2005 06:36:21 -0800 Received: from web51604.mail.yahoo.com ([206.190.38.209]) by sc8-sf-mx2.sourceforge.net with smtp (Exim 4.41) id 1Cvcf5-0006hf-J4 for nfs@lists.sourceforge.net; Mon, 31 Jan 2005 06:36:21 -0800 To: Steve Dickson , "Aswathanarayana, Chetan (STSD)" In-Reply-To: <395A443A7CBF0246843BFD3471A8231DC0176D@bgeexc04.asiapacific.cpqcorp.net> Sender: nfs-admin@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: Hi , this means that if lockd alone is running since a long time and if now i start nfsd , lockd will enter grace period and hence reclaim request will only be served for grace period interval In example given by chetan : I think if reclaim request arrive after grace period,it will be considered as normal lock request , and if lock has already been acquired by some other client (between grace period end and request arrival) , appropriate error will be returned to requestor. --thanks , kiran --- "Aswathanarayana, Chetan (STSD)" wrote: > Steved wrote : > > > Yes and Yes... When a NFS server is restarted, > there is a grace period > in which the server (i.e. lockd) will accept > reclaimed locks. > > And it appears that reclaimed locks will also be > accepted after the > grace period expires > > I think reclaim locks should not be accepted after > the grace period > expires, because it can cause data corruption. > > Say, a reclaim request arrives after grace period > and get's lock. There > will be time frame between end of grace period and > arrival of > Reclaim request, in which case any thing can > happen(ex: a new request > could be granted, it may make some changes to a file > and unlock by the > time Reclaim arrives). > > In which case reclaim thinks that it was the same > original file it had > last locked. > > So reclaim after grace period is not a good idea. > > Mehta's question : > > >What is the expected behaviour.? > >Is it that whenever nfsd starts , lockd should > enter grace period ? > >or > >Is is that lockd should enter grace period only > when it restarts > >without caring for nfs.? > > The lockd should enter grace period whenever nfsd > starts/restarts. > > ~Chetan > __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs