svcrpc: implement O_NONBLOCK behavior for use-gss-proxy
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 24 May 2013 13:47:49 +0000 (09:47 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 28 May 2013 20:46:51 +0000 (16:46 -0400)
commitb161c144404c18f6a9e20e46b63828ae3c2eb093
tree5cad25054c2dfecfd83f8e2fbb2c6d1b52a44e04
parent625cdd78d119d5848ac3c47d129bdf5f23f64120
svcrpc: implement O_NONBLOCK behavior for use-gss-proxy

Somebody noticed LTP was complaining about O_NONBLOCK opens of
/proc/net/rpc/use-gss-proxy succeeding and then a following read
hanging.

I'm not convinced LTP really has any business opening random proc files
and expecting them to behave a certain way.  Maybe this isn't really a
bug.

But in any case the O_NONBLOCK behavior could be useful for someone that
wants to test whether gss-proxy is up without waiting.

Reported-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/svcauth_gss.c