]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit763956748dd870dc8efc1f1effb8214e4329d443
tree5cad25054c2dfecfd83f8e2fbb2c6d1b52a44e04
parent435bbe6e1ffb0c3e4a206bc15ea5cde916d9b258
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