aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/xen/blkback
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2020-11-25 11:34:38 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2020-12-30 10:18:26 +0000
commit4e4e43dc9e1afc863670a031cc5cc75eb5e668d6 (patch)
treeb2fde3dd928e876abfc673b3453d0b2886e05d9a /sys/dev/xen/blkback
parent2ae75536d370c238f77ad09e5e994d2b8bdf010c (diff)
Diffstat (limited to 'sys/dev/xen/blkback')
-rw-r--r--sys/dev/xen/blkback/blkback.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c
index d60920c819b8..762f25302c00 100644
--- a/sys/dev/xen/blkback/blkback.c
+++ b/sys/dev/xen/blkback/blkback.c
@@ -3746,6 +3746,12 @@ xbb_attach(device_t dev)
xbb->hotplug_watch.callback = xbb_attach_disk;
KASSERT(xbb->hotplug_watch.node == NULL, ("watch node already setup"));
xbb->hotplug_watch.node = strdup(sbuf_data(watch_path), M_XENBLOCKBACK);
+ /*
+ * 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.
+ */
+ xbb->hotplug_watch.max_pending = 1;
sbuf_delete(watch_path);
error = xs_register_watch(&xbb->hotplug_watch);
if (error != 0) {