Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376449
b: refs/heads/master
c: b161c14
h: refs/heads/master
i:
  376447: 8407caa
v: v3
  • Loading branch information
J. Bruce Fields committed May 28, 2013
1 parent a92b384 commit d0dfb93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 625cdd78d119d5848ac3c47d129bdf5f23f64120
refs/heads/master: b161c144404c18f6a9e20e46b63828ae3c2eb093
6 changes: 4 additions & 2 deletions trunk/net/sunrpc/auth_gss/svcauth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,10 +1317,12 @@ static inline bool gssp_ready(struct sunrpc_net *sn)
return false;
}

static int wait_for_gss_proxy(struct net *net)
static int wait_for_gss_proxy(struct net *net, struct file *file)
{
struct sunrpc_net *sn = net_generic(net, sunrpc_net_id);

if (file->f_flags & O_NONBLOCK && !gssp_ready(sn))
return -EAGAIN;
return wait_event_interruptible(sn->gssp_wq, gssp_ready(sn));
}

Expand Down Expand Up @@ -1362,7 +1364,7 @@ static ssize_t read_gssp(struct file *file, char __user *buf,
size_t len;
int ret;

ret = wait_for_gss_proxy(net);
ret = wait_for_gss_proxy(net, file);
if (ret)
return ret;

Expand Down

0 comments on commit d0dfb93

Please sign in to comment.