]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Remove XDRBUF_SPARSE_PAGES flag in gss_proxy upcall
authorChuck Lever <chuck.lever@oracle.com>
Tue, 24 Nov 2020 20:48:01 +0000 (15:48 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 9 Dec 2020 14:38:34 +0000 (09:38 -0500)
commitb1f693946a2e1fe8cd7117012fa019253a816f22
tree49f1fb6aef3d304ee32557a126828896a0c9f51c
parentfe7a441f06c082d936e14ab941af474468569860
SUNRPC: Remove XDRBUF_SPARSE_PAGES flag in gss_proxy upcall

There's no need to defer allocation of pages for the receive buffer.

- This upcall is quite infrequent
- gssp_alloc_receive_pages() can allocate the pages with GFP_KERNEL,
  unlike the transport
- gssp_alloc_receive_pages() knows exactly how many pages are needed

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Olga Kornievskaia <kolga@netapp.com>
net/sunrpc/auth_gss/gss_rpc_upcall.c
net/sunrpc/auth_gss/gss_rpc_xdr.c