]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle GRANTED_RES messages more gracefully: Send along a grant cookie
authorZachary Loafman <zml@FreeBSD.org>
Wed, 7 Oct 2009 19:50:14 +0000 (19:50 +0000)
committerZachary Loafman <zml@FreeBSD.org>
Wed, 7 Oct 2009 19:50:14 +0000 (19:50 +0000)
commitfbaa591f50948f714fc5bc20dc755103bc00de71
tree936945e7639399341a200b0a66cbad8f984c496c
parent660d482a4ea05850d561de920a2c844282dd6dbc
Handle GRANTED_RES messages more gracefully: Send along a grant cookie
to reference the lock, look up the grant cookie when the GRANTED_RES
comes back. Properly handle the case of an error on the grant. Add a
short expiration window so that granted locks are not freed immediately.

Approved by:        dfr (mentor)
MFC after:          2 weeks
sys/nlm/nlm.h
sys/nlm/nlm_prot_impl.c
sys/nlm/nlm_prot_server.c