diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-24 23:48:01 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-12-09 17:38:34 +0300 |
commit | 5e54dafbe0b4a2a8555ecf0b9690150da37ee0e1 (patch) | |
tree | 49f1fb6aef3d304ee32557a126828896a0c9f51c /net/sunrpc/auth_gss/gss_rpc_xdr.c | |
parent | 4b5cff7ed8afcdd35bfff39ab503342900ec80c6 (diff) | |
download | linux-5e54dafbe0b4a2a8555ecf0b9690150da37ee0e1.tar.xz |
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>
Diffstat (limited to 'net/sunrpc/auth_gss/gss_rpc_xdr.c')
-rw-r--r-- | net/sunrpc/auth_gss/gss_rpc_xdr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/gss_rpc_xdr.c b/net/sunrpc/auth_gss/gss_rpc_xdr.c index c636c648849b..d79f12c2550a 100644 --- a/net/sunrpc/auth_gss/gss_rpc_xdr.c +++ b/net/sunrpc/auth_gss/gss_rpc_xdr.c @@ -771,7 +771,6 @@ void gssx_enc_accept_sec_context(struct rpc_rqst *req, xdr_inline_pages(&req->rq_rcv_buf, PAGE_SIZE/2 /* pretty arbitrary */, arg->pages, 0 /* page base */, arg->npages * PAGE_SIZE); - req->rq_rcv_buf.flags |= XDRBUF_SPARSE_PAGES; done: if (err) dprintk("RPC: gssx_enc_accept_sec_context: %d\n", err); |