nfsd4: centralize more calls to svc_xprt_received
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 25 Oct 2010 18:12:40 +0000 (14:12 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Nov 2010 23:35:11 +0000 (18:35 -0500)
commitca7896cd83456082b1e78816cdf7e41658ef7bcd
treeb2af6517a66f213807de4cf8c8b6eb89c218eb8e
parent62bac4af3d778f6d06d351c0442008967c512588
nfsd4: centralize more calls to svc_xprt_received

Follow up on b48fa6b99100dc7772af3cd276035fcec9719ceb by moving all the
svc_xprt_received() calls for the main xprt to one place.  The clearing
of XPT_BUSY here is critical to the correctness of the server, so I'd
prefer it to be obvious where we do it.

The only substantive result is moving svc_xprt_received() after
svc_receive_deferred().  Other than a (likely insignificant) delay
waking up the next thread, that should be harmless.

Also reshuffle the exit code a little to skip a few other steps that we
don't care about the in the svc_delete_xprt() case.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc_xprt.c