lockd: Fix server refcounting
The server shouldn't actually delete the struct nlm_host until it hits the garbage collector. In order to make that work correctly with the refcount API, we can bump the refcount by one, and then use refcount_dec_if_one() in the garbage collector. Signed-off-by: NTrond Myklebust <trondmy@gmail.com> Acked-by: NJ. Bruce Fields <bfields@fieldses.org>
Showing
想要评论请 注册 或 登录