lockd: Don't bother with RPC ping for NSM upcalls
authorChuck Lever <chuck.lever@oracle.com>
Thu, 18 Jun 2009 01:02:11 +0000 (18:02 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 18 Jun 2009 01:02:11 +0000 (18:02 -0700)
Cut NSM upcall RPC traffic in half -- don't do a NULL call first.
The cases where a ping would be helpful are rare.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/mon.c

index 3838533..7fce1b5 100644 (file)
@@ -112,6 +112,7 @@ static struct rpc_clnt *nsm_create(void)
                .program                = &nsm_program,
                .version                = NSM_VERSION,
                .authflavor             = RPC_AUTH_NULL,
+               .flags                  = RPC_CLNT_CREATE_NOPING,
        };
 
        return rpc_create(&args);