Re: [PATCH] greybus: svc_watchdog: initialize reset_work only once
From: Greg Kroah-Hartman
Date: Fri Nov 27 2026 - 03:02:09 EST
On Fri, Nov 27, 2026 at 07:52:43AM +0000, Jiayi Zhang wrote:
> reset_work is a file-scope delayed work shared by all SVC watchdogs, but
> do_work() calls INIT_DELAYED_WORK() on it every time a ping fails, right
> before scheduling it to run half a second later. With two host devices,
> the watchdog of the second SVC can see its ping fail while the work
> scheduled by the first one is still pending. INIT_DELAYED_WORK() then
> reinitializes a timer that is still enqueued, and debugobjects reports:
>
> greybus 1-svc: Resetting the greybus network, watch out!!!
> greybus 2-svc: Resetting the greybus network, watch out!!!
> ODEBUG: init active (active state 0) object: ffffffff9bda1f68 object type: timer_list hint: greybus_reset+0x0/0x50
> WARNING: lib/debugobjects.c:629 at debug_print_object+0x198/0x2b0
> Workqueue: events do_work
> Call Trace:
> __debug_object_init
> timer_init_key
> do_work drivers/greybus/svc_watchdog.c:92
> process_one_work
Cool, how are you running this? What fake devices do you have where you
have two svc hosts?
thanks,
greg k-h