mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
remove superfluous locking from dequeue
This commit is contained in:
parent
d65abd6663
commit
74aba11713
1 changed files with 0 additions and 2 deletions
|
|
@ -225,7 +225,6 @@ buf_ring_dequeue(struct buf_ring *mr)
|
|||
|
||||
ring = (caddr_t *)mr->br_ring;
|
||||
mask = mr->br_size - 1;
|
||||
mtx_lock(&mr->br_lock); /* XXX temporary ? */
|
||||
cons = mr->br_cons;
|
||||
mb();
|
||||
prod = mr->br_prod;
|
||||
|
|
@ -236,7 +235,6 @@ buf_ring_dequeue(struct buf_ring *mr)
|
|||
mr->br_cons = (cons + 1) & mask;
|
||||
mb();
|
||||
}
|
||||
mtx_unlock(&mr->br_lock); /* XXX temporary ? */
|
||||
return (m);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue