summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_int.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-02-03 23:30:17 +0000
committerglebius <glebius@FreeBSD.org>2016-02-03 23:30:17 +0000
commit953ea03018f155940b6a4b4d34edf9d5107822fe (patch)
treeab0931af6386f78986bd989d411e612dfc082b5c /sys/vm/uma_int.h
parent8f977b6c5c07cc8b9c845778b9b384d9e37482ee (diff)
downloadFreeBSD-src-953ea03018f155940b6a4b4d34edf9d5107822fe.zip
FreeBSD-src-953ea03018f155940b6a4b4d34edf9d5107822fe.tar.gz
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
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r--sys/vm/uma_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index 5d7ecd3..1b0d5d5 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -307,7 +307,7 @@ struct uma_zone {
const char *uz_warning; /* Warning to print on failure */
struct timeval uz_ratecheck; /* Warnings rate-limiting */
- uma_maxaction_t uz_maxaction; /* Function to run when at limit */
+ struct task uz_maxaction; /* Task to run when at limit */
/*
* This HAS to be the last item because we adjust the zone size
OpenPOWER on IntegriCloud