aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/uma.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2016-02-03 23:30:17 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2016-02-03 23:30:17 +0000
commite60b2fcbebd29dad02e2cbbd7be0cb92784586c4 (patch)
treeab0931af6386f78986bd989d411e612dfc082b5c /sys/vm/uma.h
parent9542ea7b80212158c1ac4904022cc2b4f8738790 (diff)
downloadsrc-e60b2fcbebd29dad02e2cbbd7be0cb92784586c4.tar.gz
src-e60b2fcbebd29dad02e2cbbd7be0cb92784586c4.zip
Redo r292484. Embed task(9) into zone, so that uz_maxaction is called
in a context that can sleep, allowing consumers of the KPI to run their drain routines without any extra measures. Discussed with: jtl
Notes
Notes: svn path=/head/; revision=295222
Diffstat (limited to 'sys/vm/uma.h')
-rw-r--r--sys/vm/uma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma.h b/sys/vm/uma.h
index d218e60886dc..21c61214315d 100644
--- a/sys/vm/uma.h
+++ b/sys/vm/uma.h
@@ -530,7 +530,7 @@ void uma_zone_set_warning(uma_zone_t zone, const char *warning);
* Returns:
* Nothing
*/
-typedef void (*uma_maxaction_t)(uma_zone_t);
+typedef void (*uma_maxaction_t)(uma_zone_t, int);
void uma_zone_set_maxaction(uma_zone_t zone, uma_maxaction_t);
/*