mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed
(cherry picked from commit 40769168a5ee227b96ea91768555eef332a0dc26)
This commit is contained in:
parent
6536b979b8
commit
a8c663bb42
1 changed files with 1 additions and 0 deletions
|
|
@ -596,6 +596,7 @@ retry:
|
|||
if (priv_check(curthread, PRIV_PIPEBUF) != 0 && maxpipekva / 100 *
|
||||
(100 - pipebuf_reserv) < amountpipekva + size) {
|
||||
vm_map_unlock(pipe_map);
|
||||
chgpipecnt(cpipe->pipe_pair->pp_owner->cr_ruidinfo, -size, 0);
|
||||
if (cpipe->pipe_buffer.buffer == NULL &&
|
||||
size > SMALL_PIPE_SIZE) {
|
||||
size = SMALL_PIPE_SIZE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue