]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Add a label for RPC calls that require allocation on receive
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 16 Sep 2018 04:08:20 +0000 (00:08 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:16 +0000 (15:35 -0400)
commit6d7ded6b712312b76be9603dbf5d65db0bd356a5
tree81117e3e64d4e6e3b847539cde5338a1e95eccca
parentb6f2ced41bd08040aee0479a4f5e4fe8764fdd78
SUNRPC: Add a label for RPC calls that require allocation on receive

If the RPC call relies on the receive call allocating pages as buffers,
then let's label it so that we
a) Don't leak memory by allocating pages for requests that do not expect
   this behaviour
b) Can optimise for the common case where calls do not require allocation.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs3xdr.c
include/linux/sunrpc/xdr.h
net/sunrpc/auth_gss/gss_rpc_xdr.c
net/sunrpc/socklib.c