bcache: Allocation kthread fixes
authorKent Overstreet <kmo@daterainc.com>
Thu, 11 Jul 2013 01:31:58 +0000 (18:31 -0700)
committerKent Overstreet <kmo@daterainc.com>
Fri, 12 Jul 2013 07:22:49 +0000 (00:22 -0700)
commit79826c35eb99cd3c0873b8396f45fa26c87fb0b0
tree0812a5cfdb0b15321af8c3f57eb4d8790e928d9e
parent29ebf465b9050f241c4433a796a32e6c896a9dcd
bcache: Allocation kthread fixes

The alloc kthread should've been using try_to_freeze() - and also there
was the potential for the alloc kthread to get woken up after it had
shut down, which would have been bad.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
drivers/md/bcache/alloc.c
drivers/md/bcache/bcache.h
drivers/md/bcache/super.c