iothread: fix poll properties typename

The getter and setter use visit_type_int64, not visit_type_int.

Fixes: 0d9d86fb4d ("iothread: add polling parameters")
Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau committed 2026-09-08 19:06:36 +04:00
1 parent 717ef02f1f
commit 00e5e5e88b
1 file changed
+4 -4
+4 -4
View File
@@ -315,19 +315,19 @@ static void iothread_class_init(ObjectClass *klass, const void *class_data)
bc->init = iothread_init;
bc->update_params = iothread_set_aio_context_params;
object_class_property_add(klass, "poll-max-ns", "int",
object_class_property_add(klass, "poll-max-ns", "int64",
iothread_get_poll_param,
iothread_set_poll_param,
NULL, &poll_max_ns_info);
object_class_property_add(klass, "poll-grow", "int",
object_class_property_add(klass, "poll-grow", "int64",
iothread_get_poll_param,
iothread_set_poll_param,
NULL, &poll_grow_info);
object_class_property_add(klass, "poll-shrink", "int",
object_class_property_add(klass, "poll-shrink", "int64",
iothread_get_poll_param,
iothread_set_poll_param,
NULL, &poll_shrink_info);
object_class_property_add(klass, "poll-weight", "int",
object_class_property_add(klass, "poll-weight", "int64",
iothread_get_poll_param,
iothread_set_poll_param,
NULL, &poll_weight_info);