From: NeilBrown Date: Wed, 4 Oct 2006 09:15:44 +0000 (-0700) Subject: [PATCH] knfsd: call lockd_down when closing a socket via a write to nfsd/portlist X-Git-Tag: v2.6.19-rc1~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37a034729ae611295bbb8e925333d4d54d7c1ebc;p=pandora-kernel.git [PATCH] knfsd: call lockd_down when closing a socket via a write to nfsd/portlist The refcount that nfsd holds on lockd is based on the number of open sockets. So when we close a socket, we should decrement the ref (with lockd_down). Currently when a socket is closed via writing to the portlist file, that doesn't happen. So: make sure we get an error return if the socket that was requested does is not found, and call lockd_down if it was. Cc: "J. Bruce Fields" Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed