On Fri, Apr 22, 2022 at 03:44:16PM -0400, yanjun.zhu@xxxxxxxxx wrote: > @@ -166,16 +166,18 @@ int __rxe_add_to_pool(struct rxe_pool *pool, struct rxe_pool_elem *elem) > elem->obj = (u8 *)elem - pool->elem_offset; > kref_init(&elem->ref_cnt); > > - if (pool->type == RXE_TYPE_AH) { > + if ((pool->type == RXE_TYPE_AH) && (gfp & GFP_ATOMIC)) { > unsigned long flags; No test for AH should be here, just gfp. Jason