mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[SCSI] bnx2fc: Clear DESTROY_CMPL flag after firmware destroy
Since this flag was never cleared, the driver does not wait for firmware destroy completions, causing missed KCQEs. Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
abc49a937b
commit
cd703ae790
1 changed files with 3 additions and 2 deletions
|
@ -771,8 +771,8 @@ static void bnx2fc_destroy_timer(unsigned long data)
|
||||||
{
|
{
|
||||||
struct bnx2fc_hba *hba = (struct bnx2fc_hba *)data;
|
struct bnx2fc_hba *hba = (struct bnx2fc_hba *)data;
|
||||||
|
|
||||||
BNX2FC_MISC_DBG("ERROR:bnx2fc_destroy_timer - "
|
printk(KERN_ERR PFX "ERROR:bnx2fc_destroy_timer - "
|
||||||
"Destroy compl not received!!\n");
|
"Destroy compl not received!!\n");
|
||||||
set_bit(BNX2FC_FLAG_DESTROY_CMPL, &hba->flags);
|
set_bit(BNX2FC_FLAG_DESTROY_CMPL, &hba->flags);
|
||||||
wake_up_interruptible(&hba->destroy_wait);
|
wake_up_interruptible(&hba->destroy_wait);
|
||||||
}
|
}
|
||||||
|
@ -1701,6 +1701,7 @@ static void bnx2fc_fw_destroy(struct bnx2fc_hba *hba)
|
||||||
wait_event_interruptible(hba->destroy_wait,
|
wait_event_interruptible(hba->destroy_wait,
|
||||||
test_bit(BNX2FC_FLAG_DESTROY_CMPL,
|
test_bit(BNX2FC_FLAG_DESTROY_CMPL,
|
||||||
&hba->flags));
|
&hba->flags));
|
||||||
|
clear_bit(BNX2FC_FLAG_DESTROY_CMPL, &hba->flags);
|
||||||
/* This should never happen */
|
/* This should never happen */
|
||||||
if (signal_pending(current))
|
if (signal_pending(current))
|
||||||
flush_signals(current);
|
flush_signals(current);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue