mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
qed: Fix setting/clearing bit in completion bitmap
[ Upstream commit59d3f1ceb6] Slowpath completion handling is incorrectly changing SPQ_RING_SIZE bits instead of a single one. Fixes:76a9a3642a("qed: fix handling of concurrent ramrods") Signed-off-by: Manish Chopra <manish.chopra@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fc9b7c086b
commit
e23696bc44
|
|
@ -794,13 +794,12 @@ int qed_spq_completion(struct qed_hwfn *p_hwfn,
|
|||
* in a bitmap and increasing the chain consumer only
|
||||
* for the first successive completed entries.
|
||||
*/
|
||||
bitmap_set(p_spq->p_comp_bitmap, pos, SPQ_RING_SIZE);
|
||||
__set_bit(pos, p_spq->p_comp_bitmap);
|
||||
|
||||
while (test_bit(p_spq->comp_bitmap_idx,
|
||||
p_spq->p_comp_bitmap)) {
|
||||
bitmap_clear(p_spq->p_comp_bitmap,
|
||||
p_spq->comp_bitmap_idx,
|
||||
SPQ_RING_SIZE);
|
||||
__clear_bit(p_spq->comp_bitmap_idx,
|
||||
p_spq->p_comp_bitmap);
|
||||
p_spq->comp_bitmap_idx++;
|
||||
qed_chain_return_produced(&p_spq->chain);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user