From: Stephen Boyd Date: Fri, 12 Dec 2014 23:04:16 +0000 (-0800) Subject: clk: Really fix deadlock with mmap_sem X-Git-Tag: omap-for-v3.20/drop-legacy-3517~6^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89f7e9de59bf3e3cda2e00de12c66db22675a7cf;p=pandora-kernel.git clk: Really fix deadlock with mmap_sem Commit 6314b6796e3c (clk: Don't hold prepare_lock across debugfs creation, 2014-09-04) forgot to update one place where we hold the prepare_lock while creating debugfs directories. This means we still have the chance of a deadlock that the commit was trying to fix. Actually fix it by moving the debugfs creation outside the prepare_lock. Cc: # 3.18 Reported-by: Russell King Fixes: 6314b6796e3c "clk: Don't hold prepare_lock across debugfs creation" Signed-off-by: Stephen Boyd Reviewed-by: Thomas Gleixner Signed-off-by: Michael Turquette [mturquette@linaro.org: removed lockdep_assert] --- Reading git-diff-tree failed