freebsd-dev/sys/compat/linuxkpi/common
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
..
include linuxkpi: Fix pcie_set_readrq() 2021-04-12 09:32:21 -04:00
src linuxkpi: reduce number of stray mm_struct allocations 2021-04-19 21:34:08 +03:00