SUNRPC: Ensure we always bump the backlog queue in xprt_free_slot
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Dec 2011 19:16:17 +0000 (14:16 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Dec 2011 19:16:17 +0000 (14:16 -0500)
commitc25573b5134294c0be82bfaecc6d08136835b271
treee3ac5119ad559cc32d391e8384d83a6ac2c06371
parent7fdcf13b292e8b2e38e42de24be2503e37b2cf97
SUNRPC: Ensure we always bump the backlog queue in xprt_free_slot

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>
Cc: stable@vger.kernel.org [>=3.1]
net/sunrpc/xprt.c