Re: [PATCH for-next V8 6/6] IB/ucma: HW Device hot-removal support

2015-08-19 Thread Jason Gunthorpe
On Wed, Aug 19, 2015 at 04:59:11PM +0300, Yishai Hadas wrote: > On 8/18/2015 8:50 PM, Jason Gunthorpe wrote: > >On Thu, Aug 13, 2015 at 06:32:07PM +0300, Yishai Hadas wrote: > >>@@ -501,10 +586,24 @@ static ssize_t ucma_destroy_id(struct ucma_file > >>*file, const char __user *inbuf, > >>+ if (!

Re: [PATCH for-next V8 6/6] IB/ucma: HW Device hot-removal support

2015-08-19 Thread Yishai Hadas
On 8/18/2015 8:50 PM, Jason Gunthorpe wrote: On Thu, Aug 13, 2015 at 06:32:07PM +0300, Yishai Hadas wrote: @@ -501,10 +586,24 @@ static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, + if (!ctx->closing) { + mutex_unlock(&mut); + ucma

Re: [PATCH for-next V8 6/6] IB/ucma: HW Device hot-removal support

2015-08-18 Thread Jason Gunthorpe
On Thu, Aug 13, 2015 at 06:32:07PM +0300, Yishai Hadas wrote: > @@ -501,10 +586,24 @@ static ssize_t ucma_destroy_id(struct ucma_file *file, > const char __user *inbuf, > + if (!ctx->closing) { > + mutex_unlock(&mut); > + ucma_put_ctx(ctx); > + wait_for_comp

[PATCH for-next V8 6/6] IB/ucma: HW Device hot-removal support

2015-08-13 Thread Yishai Hadas
Currently, IB/cma remove_one flow blocks until all user descriptor managed by IB/ucma are released. This prevents hot-removal of IB devices. This patch allows IB/cma to remove devices regardless of user space activity. Upon getting the RDMA_CM_EVENT_DEVICE_REMOVAL event we close all the underlying