From: Amos Kong Date: Mon, 8 Dec 2014 08:50:36 +0000 (+0800) Subject: hwrng: move some code out mutex_lock for avoiding underlying deadlock X-Git-Tag: fixes-v4.0-rc1~106^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dacb395d68a14825ee48c0843335e3181aea675;p=pandora-kernel.git hwrng: move some code out mutex_lock for avoiding underlying deadlock In next patch, we use reference counting for each struct hwrng, changing reference count also needs to take mutex_lock. Before releasing the lock, if we try to stop a kthread that waits to take the lock to reduce the referencing count, deadlock will occur. Signed-off-by: Amos Kong Signed-off-by: Herbert Xu --- Reading git-diff-tree failed