rds: rds_ib_recv_alloc_cache() should call alloc_percpu_gfp() instead
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Tue, 31 Jul 2018 05:48:41 +0000 (22:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:32:35 +0000 (09:32 -0700)
commitf394ad28feffbeebab77c8bf9a203bd49b957c9a
tree1e85d5122dbbcb011ba917afaa162c4bd3a7aebe
parentfea49f60c9b748abf4a1a9b2e9391d0c5b003848
rds: rds_ib_recv_alloc_cache() should call alloc_percpu_gfp() instead

Currently, rds_ib_conn_alloc() calls rds_ib_recv_alloc_caches()
without passing along the gfp_t flag.  But rds_ib_recv_alloc_caches()
and rds_ib_recv_alloc_cache() should take a gfp_t parameter so that
rds_ib_recv_alloc_cache() can call alloc_percpu_gfp() using the
correct flag instead of calling alloc_percpu().

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib.h
net/rds/ib_cm.c
net/rds/ib_recv.c