Unverified Commit 78a2fd36 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!8999 scsi: bnx2fc: Remove spin_lock_bh while releasing resources after upload

parents ef21e555 0f1cbece
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);