summaryrefslogtreecommitdiffstats
path: root/net/rds/ib_cm.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-03-21 21:44:09 +0100
committerDavid S. Miller <davem@davemloft.net>2012-03-23 00:29:58 +0100
commitf0229eaaf3f82522e2b16b41b0f45bb84a88d1b0 (patch)
treedfe2f90e6aeb6d4a4406300f48c24e11b2ee8995 /net/rds/ib_cm.c
parentnetlabel: use GFP flags from caller instead of GFP_ATOMIC (diff)
downloadlinux-f0229eaaf3f82522e2b16b41b0f45bb84a88d1b0.tar.xz
linux-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 <dan.carpenter@oracle.com> Acked-by: Venkat Venkatsubra <venkat.x.venkatsubra@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_cm.c')
-rw-r--r--net/rds/ib_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
index 51c868923f64..a1e116277477 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -749,7 +749,7 @@ int rds_ib_conn_alloc(struct rds_connection *conn, gfp_t gfp)
int ret;
/* XXX too lazy? */
- ic = kzalloc(sizeof(struct rds_ib_connection), GFP_KERNEL);
+ ic = kzalloc(sizeof(struct rds_ib_connection), gfp);
if (!ic)
return -ENOMEM;