Commit 78da2b3c authored by Chuck Lever's avatar Chuck Lever Committed by Doug Ledford

svcrdma: Remove last two __GFP_NOFAIL call sites

Clean up.

These functions can otherwise fail, so check for page allocation
failures too.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Acked-by: default avatarBruce Fields <bfields@fieldses.org>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 39b09a1a
...@@ -598,7 +598,10 @@ int svc_rdma_sendto(struct svc_rqst *rqstp) ...@@ -598,7 +598,10 @@ int svc_rdma_sendto(struct svc_rqst *rqstp)
inline_bytes = rqstp->rq_res.len; inline_bytes = rqstp->rq_res.len;
/* Create the RDMA response header */ /* Create the RDMA response header */
res_page = alloc_page(GFP_KERNEL | __GFP_NOFAIL); ret = -ENOMEM;
res_page = alloc_page(GFP_KERNEL);
if (!res_page)
goto err0;
rdma_resp = page_address(res_page); rdma_resp = page_address(res_page);
reply_ary = svc_rdma_get_reply_array(rdma_argp); reply_ary = svc_rdma_get_reply_array(rdma_argp);
if (reply_ary) if (reply_ary)
......
...@@ -1445,7 +1445,9 @@ void svc_rdma_send_error(struct svcxprt_rdma *xprt, struct rpcrdma_msg *rmsgp, ...@@ -1445,7 +1445,9 @@ void svc_rdma_send_error(struct svcxprt_rdma *xprt, struct rpcrdma_msg *rmsgp,
int length; int length;
int ret; int ret;
p = alloc_page(GFP_KERNEL | __GFP_NOFAIL); p = alloc_page(GFP_KERNEL);
if (!p)
return;
va = page_address(p); va = page_address(p);
/* XDR encode error */ /* XDR encode error */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment