diff options
| author | Roger Pau Monné <royger@FreeBSD.org> | 2020-11-25 11:34:38 +0000 |
|---|---|---|
| committer | Roger Pau Monné <royger@FreeBSD.org> | 2020-12-30 10:18:26 +0000 |
| commit | 4e4e43dc9e1afc863670a031cc5cc75eb5e668d6 (patch) | |
| tree | b2fde3dd928e876abfc673b3453d0b2886e05d9a /sys/dev/xen/control | |
| parent | 2ae75536d370c238f77ad09e5e994d2b8bdf010c (diff) | |
Diffstat (limited to 'sys/dev/xen/control')
| -rw-r--r-- | sys/dev/xen/control/control.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index e985d56cda5a..a9738eeb7c2b 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -434,6 +434,12 @@ xctrl_attach(device_t dev) xctrl->xctrl_watch.node = "control/shutdown"; xctrl->xctrl_watch.callback = xctrl_on_watch_event; xctrl->xctrl_watch.callback_data = (uintptr_t)xctrl; + /* + * We don't care about the path updated, just about the value changes + * on that single node, hence there's no need to queue more that one + * event. + */ + xctrl->xctrl_watch.max_pending = 1; xs_register_watch(&xctrl->xctrl_watch); if (xen_pv_domain()) |
