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)
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>

No differences found