[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] Re: [RFC]Drop unused plock resource when no other plock request comes



On Tue, Aug 25, 2009 at 11:35 PM, David Teigland <teigland redhat com> wrote:
On Tue, Aug 25, 2009 at 11:10:03AM +0800, Jiaju Zhang wrote:
> On Mon, Aug 24, 2009 at 10:31 PM, David Teigland <teigland redhat com>wrote:
>
> >
> > 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
>
>
> Many thanks for your guidance :-)
> So I write a patch to try to fix this. Review and comments are welcome.

Thanks, that looks like it would do the job, but the code is a little
complicated.  Here's a simpler patch, I've not tried it so it may not work :)

The code is so elegant and it works fine :)

Thanks,
Jiaju


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]