SUNRPC: Ensure we always bump the backlog queue in xprt_free_slot
commit9aeeebb28c4bd8c3a2382ff909e82989d22b97a1
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Dec 2011 19:16:17 +0000 (1 14:16 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:05 +0000 (6 14:17 -0800)
tree05d4664a9577301faaf00185cf4907b9d84e560c
parentc9b5dd12ec6e93b609b0e61acd02944352cd436d
SUNRPC: Ensure we always bump the backlog queue in xprt_free_slot

commit c25573b5134294c0be82bfaecc6d08136835b271 upstream.

Whenever we free a slot, we know that the resulting xprt->num_reqs will
be less than xprt->max_reqs, so we know that we can release at least one
backlogged rpc_task.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/xprt.c