Skip to content

Commit

Permalink
Merge tag 'nfs-for-5.1-5' of git://git.linux-nfs.org/projects/trondmy…
Browse files Browse the repository at this point in the history
…/linux-nfs

Pull NFS client bugfix from Trond Myklebust:
 "Fix a regression in which an RPC call can be tagged with an error
  despite the transmission being successful"

* tag 'nfs-for-5.1-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
  SUNRPC: Ignore queue transmission errors on successful transmission
  • Loading branch information
torvalds committed Apr 20, 2019
2 parents a06bc2f + a7b1a48 commit 9e5de62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions net/sunrpc/clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2081,8 +2081,8 @@ call_transmit_status(struct rpc_task *task)
* test first.
*/
if (rpc_task_transmitted(task)) {
if (task->tk_status == 0)
xprt_request_wait_receive(task);
task->tk_status = 0;
xprt_request_wait_receive(task);
return;
}

Expand Down Expand Up @@ -2167,6 +2167,9 @@ call_bc_transmit_status(struct rpc_task *task)
{
struct rpc_rqst *req = task->tk_rqstp;

if (rpc_task_transmitted(task))
task->tk_status = 0;

dprint_status(task);

switch (task->tk_status) {
Expand Down

0 comments on commit 9e5de62

Please sign in to comment.