On 06/15/2018 10:09 AM, ntvietvn(a)gmail.com wrote:
I set fso_lock_support_async_block = true, does it mean that disables
the fact that SAL does not keep track of the lock itself and does not check blocked lock
anymore?
The lock_op2() returns ERR_FSAL_NO_ERROR if success, ERR_FSAL_LOCKED if the lock is
already locked by another but for the moment I do not make any upcall at all. I have a
test with blocking lock and it works, and I'm wondering & trying to figure out if
the upcall is necessary.
Do you have some advice?
Thank you
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org
if fso_lock_support_async_block = true, then SAL will always call into
the FSAL, even if it's already found a conflicting lock, and will not
check for the blocking lock to be released. Instead, it will expect an
up-call into the FSAL to grant the newly unblocked lock.
If, however, that is false, then Ganesha will check when locks are
released to see if this lock is unblocked, and then will attempt to
grant it. This takes more processing, since the list of blocked locks
must be traversed for each unlock, but it provides functionality the
FSAL lacks.
Daniel