From: Alexey Khoroshilov Date: Tue, 2 Sep 2014 07:40:17 +0000 (+0400) Subject: ufs: fix deadlocks introduced by sb mutex merge X-Git-Tag: fixes-v3.17-rc4~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ef7db7f38d0472dd9c444e42d5c5175ccbe5451;p=pandora-kernel.git ufs: fix deadlocks introduced by sb mutex merge Commit 0244756edc4b ("ufs: sb mutex merge + mutex_destroy") introduces deadlocks in ufs_new_inode() and ufs_free_inode(). Most callers of that functions acqure the mutex by themselves and ufs_{new,free}_inode() do that via lock_ufs(), i.e we have an unavoidable double lock. The patch proposes to resolve the issue by making sure that ufs_{new,free}_inode() are not called with the mutex held. Found by Linux Driver Verification project (linuxtesting.org). Cc: stable@vger.kernel.org # 3.16 Signed-off-by: Alexey Khoroshilov Signed-off-by: Al Viro --- Reading git-diff-tree failed