Arquivos
linux/drivers
NeilBrown 177a99b23e md: fix use-after-free bug when dropping an rdev from an md array
Due to possible deadlock issues we need to use a schedule work to kobject_del
an 'rdev' object from a different thread.

A recent change means that kobject_add no longer gets a refernce, and
kobject_del doesn't put a reference.  Consequently, we need to explicitly hold
a reference to ensure that the last reference isn't dropped before the
scheduled work get a chance to call kobject_del.

Also, rename delayed_delete to md_delayed_delete to that it is more obvious in
a stack trace which code is to blame.

Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:19 -08:00
..
2008-02-05 09:44:22 -08:00
2008-02-06 10:41:01 -08:00
2008-02-05 09:44:23 -08:00
2008-02-03 17:12:34 +02:00
2008-02-06 10:41:15 -08:00
2008-02-05 09:44:13 -08:00
2008-02-06 10:41:01 -08:00
2008-02-04 23:50:03 +11:00
2008-02-06 10:41:02 -08:00
2008-02-03 17:21:01 +02:00
2008-02-06 10:41:10 -08:00
2008-02-06 10:41:01 -08:00
2008-01-31 11:25:51 +11:00
2008-02-06 10:41:08 -08:00
2008-02-06 10:41:01 -08:00
2008-02-03 17:30:25 +02:00
2008-02-06 10:41:07 -08:00
2008-02-04 23:50:13 +11:00
2008-02-06 10:41:15 -08:00
2008-02-05 09:44:12 -08:00
2008-02-05 09:44:12 -08:00