On Mon, Sep 13, 2021 at 11:04:42AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxx> > > Usnic VF doesn't need lock in atomic context to create QPs, so it is safe > to use mutex instead of spinlock. Such change fixes the following smatch > error. > > Smatch static checker warning: > > lib/kobject.c:289 kobject_set_name_vargs() > warn: sleeping in atomic context > > Fixes: 514aee660df4 ("RDMA: Globally allocate and release QP memory") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > drivers/infiniband/hw/usnic/usnic_ib.h | 2 +- > drivers/infiniband/hw/usnic/usnic_ib_main.c | 2 +- > drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 16 ++++++++-------- > 3 files changed, 10 insertions(+), 10 deletions(-) Jason? Thanks