sunrpc: on successful gss error pipe write, don't return error
authorJeff Layton <jlayton@redhat.com>
Fri, 18 Dec 2009 21:28:20 +0000 (16:28 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 18 Dec 2009 21:28:20 +0000 (16:28 -0500)
commit486bad2e40e938cd68fd853b7a9fa3115a9d3a4a
tree498636e706df917e28e62844b16ef05299c2704a
parentb891e4a05ef6beac85465295a032431577c66b16
sunrpc: on successful gss error pipe write, don't return error

When handling the gssd downcall, the kernel should distinguish between a
successful downcall that contains an error code and a failed downcall
(i.e. where the parsing failed or some other sort of problem occurred).

In the former case, gss_pipe_downcall should be returning the number of
bytes written to the pipe instead of an error. In the event of other
errors, we generally want the initiating task to retry the upcall so
we set msg.errno to -EAGAIN. An unexpected error code here is a bug
however, so BUG() in that case.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/auth_gss.c