From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vu Pham Subject: Re: [ofa-general][PATCH 2/4] SRP fail-over faster Date: Wed, 14 Oct 2009 12:59:25 -0700 Message-ID: <4AD62D9D.1020900@mellanox.com> References: <4AD3B443.7040107@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roland Dreier Cc: Linux RDMA list List-Id: linux-rdma@vger.kernel.org Roland Dreier wrote: > > - wait_for_completion(&target->done); > > How do you avoid leaking connection on module unload etc? Don't we have > to wait for the disconnect to finish somewhere? > > - R. > Are you talking about cm_id? I think that we wait because we want to reuse cq/qp associate with the connection. On module unload, we destroy cm_id, cq, qp altogether. -vu -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html