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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 05, 2015 at 06:09:45PM +0300, Yishai Hadas wrote:
> >>+static void ucma_close_id(struct work_struct *work)
> >>+{
> >>+	struct ucma_context *ctx =  container_of(work, struct ucma_context, close_work);
> >>+
> >>+	/* Fence to ensure that ctx->closing was seen by all
> >>+	 * ucma_get_ctx running
> >>+	 */
> >>+	mutex_lock(&mut);
> >>+	mutex_unlock(&mut);
> >
> >Uh, no. That isn't how to use mutex's.
> 
> That locking scheme is used in some other places in the kernel when a
> barrier/fence is needed, see below some examples of that usage and my
> comment around the usage.

'I saw it used someplace else' isn't much of an argument.. Maybe those
places are sane, this isn't so much..

> If you still don't agree we can go ahead and merge the first 5 patches that
> doesn't depend on that last patch and handle/discuss this patch later.

I have no real problem with that, it would be nice to have an answer
to the uverbs vs ucma removal ordering question and the basic issue of
if we even want to do this so async before merging the driver patch
that enables it..

> The first 4 you already review and acked the fifth is in mlx4_ib and has no
> comments to fix so far - some months in the list.

Personally, I'm not looking much at drivers..

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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux