Message ID | 20240315071427.31842-1-skashyap@marvell.com |
---|---|
State | New |
Headers | show |
Series | bnx2fc: Remove spin_lock_bh while release resources after upload. | expand |
On Fri, 15 Mar 2024 12:44:27 +0530, Saurav Kashyap wrote: > The session resource are used by FW and driver when session is > offloaded, once session is uploaded these resources are not used. > The lock is not required as these fields won't be used any longer. > The offload and upload call are sequential, hence, lock is not > required. > > This will supress following BUG_ON. > > [...] Applied to 6.9/scsi-fixes, thanks! [1/1] bnx2fc: Remove spin_lock_bh while release resources after upload. https://git.kernel.org/mkp/scsi/c/c214ed2a4dda
diff --git a/drivers/scsi/bnx2fc/bnx2fc_tgt.c b/drivers/scsi/bnx2fc/bnx2fc_tgt.c index 2c246e80c1c4..d91659811eb3 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_tgt.c +++ b/drivers/scsi/bnx2fc/bnx2fc_tgt.c @@ -833,7 +833,6 @@ static void bnx2fc_free_session_resc(struct bnx2fc_hba *hba, BNX2FC_TGT_DBG(tgt, "Freeing up session resources\n"); - spin_lock_bh(&tgt->cq_lock); ctx_base_ptr = tgt->ctx_base; tgt->ctx_base = NULL; @@ -889,7 +888,6 @@ static void bnx2fc_free_session_resc(struct bnx2fc_hba *hba, tgt->sq, tgt->sq_dma); tgt->sq = NULL; } - spin_unlock_bh(&tgt->cq_lock); if (ctx_base_ptr) iounmap(ctx_base_ptr);