From 47ed4aa0d61df55b9de775dcc5baf74165214751 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 12 Feb 2025 12:38:20 +0100 Subject: [PATCH] Kernel: pause exports also on restart until scan is done To save some time, exports are disabled to kernel when the initial scan is running. The same should happen when kernel protocol is restarting. --- sysdep/unix/krt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index 81c073cfd..6b4f0521f 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -900,6 +900,10 @@ krt_start(struct proto *P) bmap_init(&p->seen_map, p->p.pool, 1024); add_tail(&krt_proto_list, &p->krt_node); + /* Disable exports until initial scan is done. + * This is needed if somebody happens to restart the kernel protocol. */ + p->p.rt_notify = NULL; + if (!krt_sys_start(p)) { rem_node(&p->krt_node); -- 2.47.2