linux/drivers/md/bcache
Nicholas Swenson da415a096f bcache: Fix moving_gc deadlocking with a foreground write
Deadlock happened because a foreground write slept, waiting for a bucket
to be allocated. Normally the gc would mark buckets available for invalidation.
But the moving_gc was stuck waiting for outstanding writes to complete.
These writes used the bcache_wq, the same queue foreground writes used.

This fix gives moving_gc its own work queue, so it was still finish moving
even if foreground writes are stuck waiting for allocation. It also makes
work queue a parameter to the data_insert path, so moving_gc can use its
workqueue for writes.

Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
2014-03-18 12:22:33 -07:00
..
alloc.c bcache: Improve bucket_prio() calculation 2014-01-08 13:05:14 -08:00
bcache.h bcache: Fix moving_gc deadlocking with a foreground write 2014-03-18 12:22:33 -07:00
bset.c bcache: Fix another compiler warning on m68k 2014-02-18 08:55:05 -08:00
bset.h bcache: Add bch_bkey_equal_header() 2014-01-08 13:05:14 -08:00
btree.c bcache: Fix another bug recovering from unclean shutdown 2014-03-18 12:22:33 -07:00
btree.h bcache: Fix another bug recovering from unclean shutdown 2014-03-18 12:22:33 -07:00
closure.c bcache: kill closure locking code 2014-01-08 13:05:08 -08:00
closure.h bcache: kill closure locking code 2014-01-08 13:05:08 -08:00
debug.c bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
debug.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
extents.c bcache: Minor fixes from kbuild robot 2014-01-29 13:06:41 -08:00
extents.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
io.c block: Introduce new bio_split() 2013-11-23 22:33:57 -08:00
journal.c bcache: Fix another bug recovering from unclean shutdown 2014-03-18 12:22:33 -07:00
journal.h bcache: Fix a shutdown bug 2014-02-25 18:42:49 -08:00
Kconfig bcache: Debug code improvements 2013-11-10 21:56:34 -08:00
Makefile bcache: Abstract out stuff needed for sorting 2014-01-08 13:05:12 -08:00
movinggc.c bcache: Fix moving_gc deadlocking with a foreground write 2014-03-18 12:22:33 -07:00
request.c bcache: Fix moving_gc deadlocking with a foreground write 2014-03-18 12:22:33 -07:00
request.h bcache: Fix moving_gc deadlocking with a foreground write 2014-03-18 12:22:33 -07:00
stats.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
stats.h bcache: Break up struct search 2013-11-10 21:56:32 -08:00
super.c bcache: Fix moving_gc deadlocking with a foreground write 2014-03-18 12:22:33 -07:00
sysfs.c bcache: Minor fixes from kbuild robot 2014-01-29 13:06:41 -08:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
trace.c bcache: Break up struct search 2013-11-10 21:56:32 -08:00
util.c Linux 3.13-rc6 2013-12-31 09:51:02 -07:00
util.h bcache: Convert debug code to btree_keys 2014-01-08 13:05:13 -08:00
writeback.c Linux 3.13-rc6 2013-12-31 09:51:02 -07:00
writeback.h block: Abstract out bvec iterator 2013-11-23 22:33:47 -08:00