SUNRPC: Ensure that we grab the XPRT_LOCK before calling xprt_alloc_slot
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Jul 2011 20:01:03 +0000 (16:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Jul 2011 20:01:03 +0000 (16:01 -0400)
commit43cedbf0e8dfb9c5610eb7985d5f21263e313802
tree7758630292b6a276a3db72e63803ddc02c0a4444
parentf85ef69ce08bc2209858135328335f668ba35bdb
SUNRPC: Ensure that we grab the XPRT_LOCK before calling xprt_alloc_slot

This throttles the allocation of new slots when the socket is busy
reconnecting and/or is out of buffer space.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c