]> 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)
commit46a4889a8bea2a8584b8540854203fb3efcab9bb
tree5cad25054c2dfecfd83f8e2fbb2c6d1b52a44e04
parentd9f820f1d2fcaa3079b9d592004de15f4dd0e93f
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