freebsd-dev/sys/ufs
Don Morris f17a590085 ufs: Avoid M_WAITOK allocations when building a dirhash
At this point the directory's vnode lock is held, so blocking while
waiting for free pages makes the system more susceptible to deadlock in
low memory conditions.  This is particularly problematic on NUMA systems
as UMA currently implements a strict first-touch policy.

ufsdirhash_build() already uses M_NOWAIT for other allocations and
already handled failures for the block array allocation, so just convert
to M_NOWAIT.

PR:		253992
Reviewed by:	markj, mckusick, vangyzen
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D29045
2021-05-20 11:25:45 -04:00
..
ffs Fix handling of embedded symbolic links (and history lesson). 2021-05-16 17:04:11 -07:00
ufs ufs: Avoid M_WAITOK allocations when building a dirhash 2021-05-20 11:25:45 -04:00