lkml.org 
[lkml]   [2019]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: lockdep warns: cpu_hotplug_lock.rw_sem --> slab_mutex --> kn->count#39
On Mon, 9 Dec 2019, Daniel Wagner wrote:

> [ 5.038862]
> [ 5.038862] -> #2 (kn->count#39){++++}:
> [ 5.039329] __kernfs_remove+0x240/0x2e0
> [ 5.039717] kernfs_remove_by_name_ns+0x3c/0x80
> [ 5.040159] sysfs_slab_add+0x184/0x250

sysfs_slab_add should not be called under any lock. But it happens during
an initcall (sysfs_slab_init) when the kmalloc slab array is being set up.

And the problems results from a hotplug event? During system bringup when
the slab caches have not been setup yet?

Is this really something that can happen?

\
 
 \ /
  Last update: 2019-12-09 21:33    [W:0.224 / U:0.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site