]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 327792: Don't store shadow copies of per-process AIO limits.
authorjhb <jhb@FreeBSD.org>
Tue, 30 Jan 2018 00:52:22 +0000 (00:52 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 30 Jan 2018 00:52:22 +0000 (00:52 +0000)
commitd23a4abfa0f53a6c2cfb527e6748858f4ac3a306
tree41ad4451bb7b8bec3c72a52b40fb5e619b0c83a8
parent40adba682e7a274bc6f0c9851c0cf0ca0e16fb8a
MFC 327792: Don't store shadow copies of per-process AIO limits.

Previously the AIO subsystem would save a snapshot of the currently
configured per-process limits the first time a process used AIO.  The
process would continue to use the snapshotted limits ignoring any
changes to the global limits during the rest of its lifetime.  This
change removes the snapshotted values and changes the AIO code to
always check the global values which can be toggled at runtime.
This means an administrator can now change the effective limits of
existing processes.  This is more consistent with how other limits
configured via sysctl work in FreeBSD.

Sponsored by: Chelsio Communications
sys/kern/vfs_aio.c