svcrpc: simpler request dropping
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 3 Jan 2011 02:56:36 +0000 (21:56 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 4 Jan 2011 21:49:22 +0000 (16:49 -0500)
commit9e701c610923aaeac8b38b9202a686d1cc9ee35d
tree1b2d65df63858a2cd35a4154e6d8a9fea3e716a3
parentd76d1815f3e72fb627ad7f95ef63120b0a557c9c
svcrpc: simpler request dropping

Currently we use -EAGAIN returns to determine when to drop a deferred
request.  On its own, that is error-prone, as it makes us treat -EAGAIN
returns from other functions specially to prevent inadvertent dropping.

So, use a flag on the request instead.

Returning an error on request deferral is still required, to prevent
further processing, but we no longer need worry that an error return on
its own could result in a drop.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c
net/sunrpc/svc_xprt.c