aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/loop.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2012-03-21 20:44:09 +0000
committerDavid S. Miller <[email protected]>2012-03-22 23:29:58 +0000
commitf0229eaaf3f82522e2b16b41b0f45bb84a88d1b0 (patch)
treedfe2f90e6aeb6d4a4406300f48c24e11b2ee8995 /net/rds/loop.c
parentnetlabel: use GFP flags from caller instead of GFP_ATOMIC (diff)
downloadkernel-f0229eaaf3f82522e2b16b41b0f45bb84a88d1b0.tar.gz
kernel-f0229eaaf3f82522e2b16b41b0f45bb84a88d1b0.zip
RDS: use gfp flags from caller in conn_alloc()
We should be using the gfp flags the caller specified here, instead of GFP_KERNEL. I think this might be a bugfix, depending on the value of "sock->sk->sk_allocation" when we call rds_conn_create_outgoing() in rds_sendmsg(). Otherwise, it's just a cleanup. Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Venkat Venkatsubra <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/rds/loop.c')
-rw-r--r--net/rds/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/loop.c b/net/rds/loop.c
index 87ff2a8a454b..6b12b68541ae 100644
--- a/net/rds/loop.c
+++ b/net/rds/loop.c
@@ -121,7 +121,7 @@ static int rds_loop_conn_alloc(struct rds_connection *conn, gfp_t gfp)
struct rds_loop_connection *lc;
unsigned long flags;
- lc = kzalloc(sizeof(struct rds_loop_connection), GFP_KERNEL);
+ lc = kzalloc(sizeof(struct rds_loop_connection), gfp);
if (!lc)
return -ENOMEM;