mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-17 18:14:34 +08:00
[SCSI] bnx2fc: Do not arm CQ when there are no CQEs
Signed-off-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
bd4d5de8b9
commit
fd08bd622d
@ -1070,8 +1070,10 @@ unlock:
|
|||||||
1 - tgt->cq_curr_toggle_bit;
|
1 - tgt->cq_curr_toggle_bit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bnx2fc_arm_cq(tgt);
|
if (num_free_sqes) {
|
||||||
atomic_add(num_free_sqes, &tgt->free_sqes);
|
bnx2fc_arm_cq(tgt);
|
||||||
|
atomic_add(num_free_sqes, &tgt->free_sqes);
|
||||||
|
}
|
||||||
spin_unlock_bh(&tgt->cq_lock);
|
spin_unlock_bh(&tgt->cq_lock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user