mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] idr: Print a stack dump after ida_remove warning
@ 2013-05-05  9:32 Jean Delvare
  2013-05-07 23:34 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2013-05-05  9:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: Tejun Heo, Andrew Morton, Takashi Iwai

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.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Takashi Iwai <tiwai@suse.de>
---
 lib/idr.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-3.10-rc0.orig/lib/idr.c	2013-05-05 10:17:03.086198024 +0200
+++ linux-3.10-rc0/lib/idr.c	2013-05-05 10:41:11.939134735 +0200
@@ -1066,6 +1066,7 @@ void ida_remove(struct ida *ida, int id)
  err:
 	printk(KERN_WARNING
 	       "ida_remove called for id=%d which is not allocated.\n", id);
+	dump_stack();
 }
 EXPORT_SYMBOL(ida_remove);
 

-- 
Jean Delvare
Suse L3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-13  9:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-05  9:32 [PATCH] idr: Print a stack dump after ida_remove warning Jean Delvare
2013-05-07 23:34 ` Andrew Morton
2013-05-08 14:54   ` Takashi Iwai
2013-05-13  9:30   ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®