]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Avoid holding locks across the XDR encoding of the RPC message
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 14 Aug 2018 17:58:34 +0000 (13:58 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:14 +0000 (15:35 -0400)
commit94e1ffe7696a4d3b96f9f84f9264d17ab23433ce
tree456fb5e4ff9c57f1adfdac7dedcc61f2f3fb14a4
parent86f2d97836c9c15a6245c84ec8a125c058c47680
SUNRPC: Avoid holding locks across the XDR encoding of the RPC message

Currently, we grab the socket bit lock before we allow the message
to be XDR encoded. That significantly slows down the transmission
rate, since we serialise on a potentially blocking operation.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c