diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-03-18 20:47:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-28 15:58:07 -0400 |
commit | d5a8620f7c8a5bcade730e2fa1224191f289fb00 (patch) | |
tree | 40fc44449ff6553af283df00f804bc7d4ce356af /net/phonet | |
parent | 1673d0de40ab46cac3b456ad50e1c8d6a31bfd66 (diff) | |
download | blackbird-op-linux-d5a8620f7c8a5bcade730e2fa1224191f289fb00.tar.gz blackbird-op-linux-d5a8620f7c8a5bcade730e2fa1224191f289fb00.zip |
SUNRPC: Simplify svc_unregister()
Our initial implementation of svc_unregister() assumed that PMAP_UNSET
cleared all rpcbind registrations for a [program, version] tuple.
However, we now have evidence that PMAP_UNSET clears only "inet"
entries, and not "inet6" entries, in the rpcbind database.
For backwards compatibility with the legacy portmapper, the
svc_unregister() function also must work if user space doesn't support
rpcbind version 4 at all.
Thus we'll send an rpcbind v4 UNSET, and if that fails, we'll send a
PMAP_UNSET.
This simplifies the code in svc_unregister() and provides better
backwards compatibility with legacy user space that does not support
rpcbind version 4. We can get rid of the conditional compilation in
here as well.
This patch is part of a series that addresses
http://bugzilla.kernel.org/show_bug.cgi?id=12256
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/phonet')
0 files changed, 0 insertions, 0 deletions