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