kernel/drivers/infiniband/core/agent.c
.. .. @@ -137,13 +137,13 @@ 137 137 err2: 138 138 ib_free_send_mad(send_buf); 139 139 err1: 140 - rdma_destroy_ah(ah);140 + rdma_destroy_ah(ah, RDMA_DESTROY_AH_SLEEPABLE);141 141 } 142 142 143 143 static void agent_send_handler(struct ib_mad_agent *mad_agent, 144 144 struct ib_mad_send_wc *mad_send_wc) 145 145 { 146 - rdma_destroy_ah(mad_send_wc->send_buf->ah);146 + rdma_destroy_ah(mad_send_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE);147 147 ib_free_send_mad(mad_send_wc->send_buf); 148 148 } 149 149