]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
idr: print a stack dump after ida_remove warning
authorJean Delvare <jdelvare@suse.de>
Wed, 3 Jul 2013 22:08:47 +0000 (15:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:04 +0000 (16:08 -0700)
commitdd04b452f532ca100f7c557295ffcbc049c77171
treea889034e7b6cd0507ec10f32f07731b59e6cefc2
parent8bdc237ac113dd42a1c977c8cd3a65a82f774d5e
idr: print a stack dump after ida_remove warning

We print a dump stack after idr_remove warning.  This is useful to find
the faulty piece of code.  Let's do the same for ida_remove, as it would
be equally useful there.

[akpm@linux-foundation.org: convert the open-coded printk+dump_stack into WARN()]
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c