mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
remove superfluous locking from dequeue
This commit is contained in:
parent
d65abd6663
commit
74aba11713
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175339
@ -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 New Issue
Block a user