From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Teigland Date: Mon, 24 Aug 2009 09:31:29 -0500 Subject: [Cluster-devel] Re: [RFC]Drop unused plock resource when no other plock request comes In-Reply-To: References: Message-ID: <20090824143128.GA25798@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sun, Aug 23, 2009 at 05:00:44PM +0800, Jiaju Zhang wrote: > It seems no chance to trigger the drop_resources to work if there is no > other plock requests (which are requesting for another lock resource) come > from node A. > But I still wonder if there is a way to improve this? You're correct; yes the daemon could easily be changed to drop resources when there's no locking activity. We'd just set a poll timeout when plock_resources is non-empty and call drop_resources() if it times out. (If you simply want to work around this, you can write a little program to lock a file on the fs to trigger the drop.) Dave