On Thu, Mar 17, 2016 at 9:42 PM, Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> wrote: > On Thu, Mar 17, 2016 at 09:38:30PM +0530, Devesh Sharma wrote: > >> To my mind mutex is *not* solving the problem completely unless we >> make it a coarser grained lock. The possible deadlock problem still >> lingers around it. > > Review the last version I sent, with this statement in mind: I am sorry I lost the track of it, which one you are point..we have been discussion for a quite some time now! > >> > The fundamental thing is that the ib_uverbs_free_hw_resources thread >> > must wait for ib_uverbs_close's ib_uverbs_cleanup_ucontext to finish, >> > if necessary, not the other way around. > > It sure doesn't look like it can deadlock... > > Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html