Re: [PATCH for-next 1/3] RDMA/bnxt_re: Use ib_device_try_get()

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

 



On Fri, Mar 13, 2020 at 05:31:32AM -0700, Selvin Xavier wrote:
> From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> 
> There are a couple places in this driver running from a work queue that
> need the ib_device to be registered. Instead of using a broken internal
> bit rely on the new core code to guarantee device registration.
> 
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> Signed-off-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/bnxt_re/main.c | 25 ++++++++++++++-----------
>  1 file changed, 14 insertions(+), 11 deletions(-)

All readers of BNXT_RE_FLAG_IBDEV_REGISTERED are deleted now, the bit
and the writers should be deleted too in this patch

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