Commit f2ec76f2 authored by Andy Grover's avatar Andy Grover

RDS: Use NOWAIT in message_map_pages()

Can no longer block, so use NOWAIT.
Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
parent 2fa57129
...@@ -256,7 +256,7 @@ struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned in ...@@ -256,7 +256,7 @@ struct rds_message *rds_message_map_pages(unsigned long *page_addrs, unsigned in
int num_sgs = ceil(total_len, PAGE_SIZE); int num_sgs = ceil(total_len, PAGE_SIZE);
int extra_bytes = num_sgs * sizeof(struct scatterlist); int extra_bytes = num_sgs * sizeof(struct scatterlist);
rm = rds_message_alloc(extra_bytes, GFP_KERNEL); rm = rds_message_alloc(extra_bytes, GFP_NOWAIT);
if (!rm) if (!rm)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
......
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