[Gluster-devel] Reserve Locks

Raghavendra Talur rtalur at redhat.com
Mon Mar 13 08:44:22 UTC 2017


On Sun, Mar 12, 2017 at 3:18 PM, Amar Tumballi <atumball at redhat.com> wrote:
> Please check inline.
>
> On Fri, Mar 10, 2017 at 2:39 PM, Xavier Hernandez <xhernandez at datalab.es>
> wrote:
>>
>> Hi,
>>
>> I'm looking at the locks xlator and I see that it has something called
>> reserve locks. I remember long time ago that someone said this was defined
>> for some purpose, but I don't remember and currently I'm unable to identify
>> any place in the code where these locks are really used.
>>
>> I think it cannot be used from the user side through FUSE, maybe through
>> gfapi it could be used.
>>
>
> Not FUSE, Nor gfapi. This was added for supporting AFR's lock healing long
> back.
>
>>
>> Only calls coming from the user can use it
>> So the questions are:
>>
>> * Why are they needed ?
>
>
> "git show af18c636c44b1ea56296850e55afe0e4b2ce845c" helped to understand the
> reason behind bring it in.
>
>>
>> * Are they being used for something ?
>
>
> This helped in opening and preserving the locks after healing a file which
> was open and had locks. Specially used in case of replace-brick type of
> operation.
>
>>
>> * Can they be removed ?
>
>
> Current AFR maintainers should confirm about it as I haven't seen code in
> last 4yrs.

This is currently not used, but there were plans to bring a similar
lock back to help in lock healing across replicas.

Added other members who were part of the discussion.

>
>>
>>
>> Thank you very much,
>>
>> Xavi
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at gluster.org
>> http://lists.gluster.org/mailman/listinfo/gluster-devel
>
>
>
>
> --
> Amar Tumballi (amarts)
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at gluster.org
> http://lists.gluster.org/mailman/listinfo/gluster-devel


More information about the Gluster-devel mailing list