Kent Overstreet 05335cff9f bcache: Fix a race when freeing btree nodes
This isn't a bulletproof fix; btree_node_free() -> bch_bucket_free() puts the
bucket on the unused freelist, where it can be reused right away without any
ordering requirements. It would be better to wait on at least a journal write to
go down before reusing the bucket. bch_btree_set_root() does this, and inserting
into non leaf nodes is completely synchronous so we should be ok, but future
patches are just going to get rid of the unused freelist - it was needed in the
past for various reasons but shouldn't be anymore.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2014-03-18 12:23:34 -07:00
..
2014-03-18 12:22:36 -07:00
2014-03-18 12:22:36 -07:00
2014-01-08 13:05:08 -08:00
2014-01-08 13:05:08 -08:00
2013-11-23 22:33:57 -08:00
2014-02-25 18:42:49 -08:00
2014-03-18 12:22:35 -07:00
2014-03-18 12:22:35 -07:00
2014-03-18 12:22:35 -07:00
2014-03-18 12:22:35 -07:00
2013-11-10 21:56:32 -08:00
2014-03-18 12:22:35 -07:00
2014-03-18 12:22:35 -07:00
2013-12-31 09:51:02 -07:00
2013-12-31 09:51:02 -07:00
2013-11-23 22:33:47 -08:00