]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remote and local adv lock servers might de-synchronize (the added comment
authorkib <kib@FreeBSD.org>
Sun, 19 Jun 2016 18:32:35 +0000 (18:32 +0000)
committerkib <kib@FreeBSD.org>
Sun, 19 Jun 2016 18:32:35 +0000 (18:32 +0000)
commit6828dedaeb9f0259446b6e2e84e2180458a2398e
tree379c961e807e3f7a9a0673fb42f53581268de8b6
parent082d766398a8cf7feba0fcf51b70bd6e804854c5
Remote and local adv lock servers might de-synchronize (the added comment
explains the plausible scenario), resulting in EDEADLK returned on the
local registration attempt.  Handle this by re-trying the local op [1].

On unmount, local registration abort is indicated as EINTR, abort the nlm
call as well.

Reported and tested by: pho
Suggested and reviewed by: dfr (previous version, [1])
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (delphij)
sys/nlm/nlm_advlock.c