]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 29 Dec 2010 11:39:15 +0000 (11:39 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 29 Dec 2010 11:39:15 +0000 (11:39 +0000)
commitc44d423ed88124c563b4947c71ab417c27a6d8a1
tree8366614b03c9b5464f640587479401f3355728c8
parentabf6c181e478b6ae75fe1a3df1d9948d184110be
Add sysctl vm.md_malloc_wait, non-zero value of which switches malloc-backed
md(4) to using M_WAITOK malloc calls.

M_NOWAITOK allocations may fail when enough memory could be freed, but not
immediately. E.g. SU UFS becomes quite unhappy when metadata write return
error, that would happen for failed malloc() call.

Reported and tested by: pho
MFC after: 1 week
sys/dev/md/md.c