From: Al Viro Date: Sat, 14 Sep 2013 21:32:12 +0000 (-0400) Subject: autofs4: close the races around autofs4_notify_daemon() X-Git-Tag: v3.12-rc2~18^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=606035e76e79b14bf7a7c219140c045a952cc76e;p=pandora-kernel.git autofs4: close the races around autofs4_notify_daemon() Don't drop ->wq_mutex before calling autofs4_notify_daemon() only to regain it there. Besides being pointless, that opens a race window where autofs4_wait_release() could've come and freed wq->name.name. And do the debugging printk in the "reused an existing wq" case before dropping ->wq_mutex - the same reason... Signed-off-by: Al Viro Acked-by: Ian Kent --- Reading git-diff-tree failed