Skip to content

Commit

Permalink
NFSD: NFSv4 callback client should use RPC_TASK_SOFTCONN
Browse files Browse the repository at this point in the history
The server's callback client should stop trying to connect to the
client's callback server as soon as it gets ECONNREFUSED.

The NFS server's callback client does not call rpc_ping(), but appears
to have it's own "ping" procedure, so it wasn't covered by commit
caabea8.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Feb 25, 2010
1 parent 978ebd9 commit 58255a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,8 @@ void do_probe_callback(struct nfs4_client *clp)
};
int status;

status = rpc_call_async(cb->cb_client, &msg, RPC_TASK_SOFT,
status = rpc_call_async(cb->cb_client, &msg,
RPC_TASK_SOFT | RPC_TASK_SOFTCONN,
&nfsd4_cb_probe_ops, (void *)clp);
if (status) {
warn_no_callback_path(clp, status);
Expand Down

0 comments on commit 58255a4

Please sign in to comment.