From: Artem Bityutskiy Date: Thu, 4 Dec 2008 18:52:44 +0000 (+0200) Subject: UBI: fix deadlock X-Git-Tag: v2.6.29-rc1~534^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4df581f3dc6a91a63b9965ac8bdb47d8db294e37;p=pandora-kernel.git UBI: fix deadlock We cannot call 'ubi_wl_get_peb()' with @ubi->buf_mutex locked, because 'ubi_wl_get_peb()' may force erasure, which, in turn, may call 'torture_peb()' which also locks the @ubi->buf_mutex and deadlocks. Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed