lkml.org 
[lkml]   [2020]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] timer: silenct a lockdep splat with debugobjects
On Fri, Mar 13, 2020 at 03:32:52PM -0400, Qian Cai wrote:
> Well, in mm/vmstat.c (init_mm_internals) case for example, it was initialized
> as a static,
>
> static DECLARE_DEFERRABLE_WORK(shepherd, vmstat_shepherd);
>
> which will not call __debug_object_init().

Then fix that.

That is, all of:

DECLARE_DEFERRABLE_WORK
KTHREAD_DELAYED_WORK_INIT
DEFINE_TIMER

are broken and need to go.

Unless of course, you can frob debugobjects such that we can provide the
required storage through is_static_object() and modify the above static
declarators to provide the storage.

Or, fix that random crud to do the wakeup outside of the lock.

Plenty options..

\
 
 \ /
  Last update: 2020-03-13 21:15    [W:0.061 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site