Re: [PATCH rdma-next 4/7] RDMA/core: Introduce a helper function to change net namespace of rdma device

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

 



On Sun, Jan 13, 2019 at 05:54:00AM +0000, Parav Pandit wrote:

> In _ib_dev_change_net_ns() there are only two functions that can fail.
> One of them rdmacg_register_device() always return 0.
> I should supply a patch to simplify this path regardless.

I'd be much happier if it can't fail.. That makes far more sense

> > Well, no, the device_mutex is supposed to protect the device and other lists,
> > it is not a lock to be used against the entire registration flow. If a lock for
> > that is needed then we'll need a new lock
> 
> Ok. let me rework on this part of the series with new lock that
> protects these operations and reduce dependency on device mutex.

Okay, let me send you some stuff..

Jason



[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