aboutsummaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorDon Morris <dgmorris@earthlink.net>2021-05-20 14:54:38 +0000
committerMark Johnston <markj@FreeBSD.org>2021-05-20 15:25:45 +0000
commitf17a5900850b4d449a91cbe9c61dfb62373c3cd1 (patch)
tree8b8960a855948521a42ead77954f62ce9a3690c1 /sys/cam
parent9938fcaa6565a660c555a0e9c712842ba1a2d31c (diff)
downloadsrc-f17a5900850b4d449a91cbe9c61dfb62373c3cd1.tar.gz
src-f17a5900850b4d449a91cbe9c61dfb62373c3cd1.zip
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
Diffstat (limited to 'sys/cam')
0 files changed, 0 insertions, 0 deletions