mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Don't call wakeup if we're just returning reserved space; just
return the reservation and wait for more space to appear. Submitted by: jeff Reviewed by: kib
This commit is contained in:
parent
d921a4eb9c
commit
45130aa12e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292299
@ -2909,7 +2909,7 @@ getnewbuf(struct vnode *vp, int slpflag, int slptimeo, int maxsize, int gbflags)
|
||||
} while(buf_scan(false) == 0);
|
||||
|
||||
if (reserved)
|
||||
bufspace_release(maxsize);
|
||||
atomic_subtract_long(&bufspace, maxsize);
|
||||
if (bp != NULL) {
|
||||
bp->b_flags |= B_INVAL;
|
||||
brelse(bp);
|
||||
|
Loading…
Reference in New Issue
Block a user