freebsd-dev/sys/compat
Konstantin Belousov fad437ba61 linuxkpi: reduce number of stray mm_struct allocations
Only allocate struct_mm after we checked that other threads do not carry
useful mm_struct.  If they don't, drop process lock, allocate, and recheck.

Note that for M_NOWAIT allocations we could avoid dropping process lock,
but I do not think that this increased complexity is useful.

Reviewed by:	hselasky
Sponsored by:	Mellanox Technologies/NVidia Networking
MFC after:	1 week
2021-04-19 21:34:08 +03:00
..
cloudabi Rename kern_mmap_req to kern_mmap 2021-01-25 21:50:37 +00:00
cloudabi32
cloudabi64
freebsd32 Rename kern_mmap_req to kern_mmap 2021-01-25 21:50:37 +00:00
ia32
lindebugfs
linprocfs Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
linsysfs linsysfs: create /sys/bus/ and /sys/subsystem/ 2021-03-11 15:50:51 +00:00
linux linux(4): bump osrelease to 4.4.0. 2021-04-19 11:37:58 +01:00
linuxkpi/common linuxkpi: reduce number of stray mm_struct allocations 2021-04-19 21:34:08 +03:00
x86bios