]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bcache: Fix a shrinker deadlock
authorKent Overstreet <kmo@daterainc.com>
Fri, 30 Aug 2013 21:12:24 +0000 (14:12 -0700)
committerKent Overstreet <kmo@daterainc.com>
Fri, 30 Aug 2013 21:15:19 +0000 (14:15 -0700)
commitb5a1a5cfffbcf355f52e67a9b57db4914395ca70
tree3882a8c2bbd10c38a8e5b61e6bd3c356af8a5f1f
parent174c1412939888ffedc4da02b375bc579af2a93c
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
drivers/md/bcache/btree.c