bcache: Allocator cleanup/fixes
authorKent Overstreet <koverstreet@google.com>
Wed, 1 May 2013 02:14:40 +0000 (19:14 -0700)
committerKent Overstreet <koverstreet@google.com>
Wed, 1 May 2013 02:14:40 +0000 (19:14 -0700)
commit86b26b824cf5d15d4408b33d6d716104f249e8bd
treed36395292ec70eac25ba86321a8a9361b78070a2
parent8abb2a5dbadab91f9cae22270054e9ee3b3a1d2f
bcache: Allocator cleanup/fixes

The main fix is that bch_allocator_thread() wasn't waiting on
garbage collection to finish (if invalidate_buckets had set
ca->invalidate_needs_gc); we need that to make sure the allocator
doesn't spin and potentially block gc from finishing.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/alloc.c
drivers/md/bcache/btree.c