@@ -63,10 +63,9 @@ struct kmem_cache *rds_ib_incoming_slab;
63
63
struct kmem_cache * rds_ib_frag_slab ;
64
64
atomic_t rds_ib_allocation = ATOMIC_INIT (0 );
65
65
66
- static inline void * rds_ib_kmem_cache_alloc (struct kmem_cache * cachep , gfp_t flags ,
67
- struct rds_ib_device * rds_ibdev )
66
+ static inline void * rds_ib_kmem_cache_alloc (struct kmem_cache * cachep , gfp_t flags )
68
67
{
69
- void * ent = kmem_cache_alloc_node (cachep , flags , rdsibdev_to_node ( rds_ibdev ) );
68
+ void * ent = kmem_cache_alloc (cachep , flags );
70
69
71
70
if (ent )
72
71
rds_ib_stats_inc (s_ib_rx_cache_alloc );
@@ -245,7 +244,7 @@ static struct rds_ib_incoming *rds_ib_refill_one_inc(struct rds_ib_connection *i
245
244
if (cache_item ) {
246
245
ibinc = container_of (cache_item , struct rds_ib_incoming , ii_cache_entry );
247
246
} else {
248
- ibinc = rds_ib_kmem_cache_alloc (rds_ib_incoming_slab , slab_mask , ic -> rds_ibdev );
247
+ ibinc = rds_ib_kmem_cache_alloc (rds_ib_incoming_slab , slab_mask );
249
248
if (!ibinc )
250
249
return NULL ;
251
250
rds_ib_stats_inc (s_ib_rx_total_incs );
@@ -287,7 +286,7 @@ static struct rds_page_frag *rds_ib_refill_one_frag(struct rds_ib_connection *ic
287
286
return NULL ;
288
287
}
289
288
290
- frag = rds_ib_kmem_cache_alloc (rds_ib_frag_slab , slab_mask , ic -> rds_ibdev );
289
+ frag = rds_ib_kmem_cache_alloc (rds_ib_frag_slab , slab_mask );
291
290
if (!frag ) {
292
291
atomic_sub (ic -> i_frag_pages , & rds_ib_allocation );
293
292
rds_ib_stats_inc (s_ib_rx_cache_put_alloc );
@@ -459,15 +458,15 @@ static int rds_ib_srq_prefill_one(struct rds_ib_device *rds_ibdev,
459
458
}
460
459
461
460
if (!recv -> r_ibinc ) {
462
- recv -> r_ibinc = rds_ib_kmem_cache_alloc (rds_ib_incoming_slab , slab_mask , rds_ibdev );
461
+ recv -> r_ibinc = rds_ib_kmem_cache_alloc (rds_ib_incoming_slab , slab_mask );
463
462
if (!recv -> r_ibinc )
464
463
goto out ;
465
464
rds_ib_stats_inc (s_ib_rx_total_incs );
466
465
INIT_LIST_HEAD (& recv -> r_ibinc -> ii_frags );
467
466
}
468
467
469
468
WARN_ON_ONCE (recv -> r_frag ); /* leak! */
470
- recv -> r_frag = rds_ib_kmem_cache_alloc (rds_ib_frag_slab , slab_mask , rds_ibdev );
469
+ recv -> r_frag = rds_ib_kmem_cache_alloc (rds_ib_frag_slab , slab_mask );
471
470
if (!recv -> r_frag )
472
471
goto out ;
473
472
sg_init_table (recv -> r_frag -> f_sg , num_sge );
0 commit comments