bcache: Fix a shrinker deadlock
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:34 +0000 (23:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:17:54 +0000 (07:17 -0700)
commitf63c788cf38ecdc9b86acd49106f3c836cc0b953
tree86a2e2ba973dc41fee911216c7af2558fbedb583
parentc0da424172e7d27e0a730160f43bf8b13ee5e1c4
bcache: Fix a shrinker deadlock

commit a698e08c82dfb9771e0bac12c7337c706d729b6d upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/btree.c