- spell add 'add' and not 'subtract' in an atomic op.
Spotted by: alc Pointy hat to: jeff
This commit is contained in:
parent
233b1b978b
commit
15553af710
@ -342,7 +342,7 @@ runningbufwakeup(struct buf *bp)
|
||||
static __inline void
|
||||
bufcountwakeup(void)
|
||||
{
|
||||
atomic_subtract_int(&numfreebuffers, 1);
|
||||
atomic_add_int(&numfreebuffers, 1);
|
||||
mtx_lock(&nblock);
|
||||
if (needsbuffer) {
|
||||
needsbuffer &= ~VFS_BIO_NEED_ANY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user