bcache: fix for gc and writeback race
authorNicholas Swenson <nks@daterainc.com>
Wed, 27 Nov 2013 03:14:23 +0000 (19:14 -0800)
committerKent Overstreet <kmo@daterainc.com>
Mon, 16 Dec 2013 22:22:58 +0000 (14:22 -0800)
commitbf0a628a95dba7f983b6047cea695fb066fb2512
tree5815bc02f4c50db33adc8e35dff617a00f4cf37a
parent981aa8c091e164ea51dd1e81b71a1f3852bbcceb
bcache: fix for gc and writeback race

Garbage collector needs to check keys in the writeback keybuf to
make sure it's not invalidating buckets to which the writeback
keys point to.

Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/btree.c