]> 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)
commit73ff2faecfafdcee112b9c7d71560a1378bc5b9e
tree456fb5e4ff9c57f1adfdac7dedcc61f2f3fb14a4
parent34de169cc78d140f16b0cca519f4d47ddc12db7e
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