Commit 220bcc2afd7011b3e0569fc178331fa983c92c1b
1 parent
b6e9c713f5
Exists in
master
and in
7 other branches
SUNRPC: Don't call xprt_release in call refresh
Call it from call_verify() instead... Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
net/sunrpc/clnt.c
... | ... | @@ -1271,7 +1271,6 @@ |
1271 | 1271 | { |
1272 | 1272 | dprint_status(task); |
1273 | 1273 | |
1274 | - xprt_release(task); /* Must do to obtain new XID */ | |
1275 | 1274 | task->tk_action = call_refreshresult; |
1276 | 1275 | task->tk_status = 0; |
1277 | 1276 | task->tk_client->cl_stats->rpcauthrefresh++; |
... | ... | @@ -1389,6 +1388,8 @@ |
1389 | 1388 | dprintk("RPC: %5u %s: retry stale creds\n", |
1390 | 1389 | task->tk_pid, __FUNCTION__); |
1391 | 1390 | rpcauth_invalcred(task); |
1391 | + /* Ensure we obtain a new XID! */ | |
1392 | + xprt_release(task); | |
1392 | 1393 | task->tk_action = call_refresh; |
1393 | 1394 | goto out_retry; |
1394 | 1395 | case RPC_AUTH_BADCRED: |