From: NeilBrown Date: Sat, 16 Apr 2005 22:26:41 +0000 (-0700) Subject: [PATCH] md: close a small race in md thread deregistration X-Git-Tag: v2.6.12-rc3~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d28446fe2d87ea344c14741c39962dcc7aee5c78;p=pandora-kernel.git [PATCH] md: close a small race in md thread deregistration There is a tiny race when de-registering an MD thread, in that the thread could disappear before it is set a SIGKILL, causing send_sig to have problems. This is most easily closed by holding tasklist_lock between enabling the thread to exit (setting ->run to NULL) and telling it to exit. (akpm: ick. Needs to use kthread API and stop using signals) Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed