]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitacc0f66c08acb2985d13c4252e9c6d6566ef4b32
tree7758630292b6a276a3db72e63803ddc02c0a4444
parentf6c00d7b9108cb4d07eab075150dac5ca736b945
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