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)
commit3a03818fbee0a85196a2214f07db9e2b622e2550
tree456fb5e4ff9c57f1adfdac7dedcc61f2f3fb14a4
parent7ebbbc6e7bd023903daa5bd95726edf2d60b559c
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