]> 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)
commit07e1dbdb716310a5612ace835452586a2c8da51d
tree7758630292b6a276a3db72e63803ddc02c0a4444
parentb8c754fa7c5f8d0f537b7e0440a67b933e0f4dc5
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