Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 310959
b: refs/heads/master
c: 92123e0
h: refs/heads/master
i:
  310957: 13c641e
  310955: 7c0ac81
  310951: 6fc0b62
  310943: 9c4af76
v: v3
  • Loading branch information
Jeff Layton authored and Trond Myklebust committed Jun 11, 2012
1 parent 55c30b5 commit 66b4a5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2669940db8d02147181e338bb6db98394569f31a
refs/heads/master: 92123e068efa310b09e9943ac1cfd10ff6b6d2e4
12 changes: 6 additions & 6 deletions trunk/net/sunrpc/rpc_pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ static void rpc_purge_list(wait_queue_head_t *waitq, struct list_head *head,
msg->errno = err;
destroy_msg(msg);
} while (!list_empty(head));
wake_up(waitq);

if (waitq)
wake_up(waitq);
}

static void
Expand All @@ -91,11 +93,9 @@ rpc_timeout_upcall_queue(struct work_struct *work)
}
dentry = dget(pipe->dentry);
spin_unlock(&pipe->lock);
if (dentry) {
rpc_purge_list(&RPC_I(dentry->d_inode)->waitq,
&free_list, destroy_msg, -ETIMEDOUT);
dput(dentry);
}
rpc_purge_list(dentry ? &RPC_I(dentry->d_inode)->waitq : NULL,
&free_list, destroy_msg, -ETIMEDOUT);
dput(dentry);
}

ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg,
Expand Down

0 comments on commit 66b4a5f

Please sign in to comment.