Re: [PATCH for-rc 1/2] RDMA/device: Expose ib_device_try_get(()

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

 



On 1/11/2019 8:31 PM, Jason Gunthorpe wrote:
> From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
>
> It turns out future patches need this capability quite widely now,
> not just for netlink, so provide two global functions to manage the
> registration lock refcount.
>
> This also moves the point the lock becomes 1 to within ib_register_device()
> so that the semantics of the public API are very sane and clear. Calling
> ib_device_try_get() will fail on devices that are only allocated but
> not yet registered.
>
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>


This looks good to me.

Signed-off-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx>





[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