]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
bcache: Fix a shrinker deadlock
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:34 +0000 (23:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:43 +0000 (14:41 -0700)
commita698e08c82dfb9771e0bac12c7337c706d729b6d
treea9048d9322ce493b45d03be8254f96c05f0a456f
parent79e3dab90d9f826ceca67c7890e048ac9169de49
bcache: Fix a shrinker deadlock

GFP_NOIO means we could be getting called recursively - mca_alloc() ->
mca_data_alloc() - definitely can't use mutex_lock(bucket_lock) then.
Whoops.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bcache/btree.c