bcache: Convert gc to a kthread
authorKent Overstreet <kmo@daterainc.com>
Fri, 25 Oct 2013 00:19:26 +0000 (17:19 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 11 Nov 2013 05:56:04 +0000 (21:56 -0800)
commit72a44517f3ca3725dc86081d105457df46448679
tree247b859af6c4377ab1ea90fd1fd4e64278ccdbbd
parent35fcd848d72683141052aa9880542461577f2dbe
bcache: Convert gc to a kthread

We needed a dedicated rescuer workqueue for gc anyways... and gc was
conceptually a dedicated thread, just one that wasn't running all the
time. Switch it to a dedicated thread to make the code a bit more
straightforward.

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