linux-uconsole/drivers/md/bcache
Kent Overstreet 30d0e7953b bcache: Fix flushes in writeback mode
commit c0f04d88e4 upstream.

In writeback mode, when we get a cache flush we need to make sure we
issue a flush to the backing device.

The code for sending down an extra flush was wrong - by cloning the bio
we were probably getting flags that didn't make sense for a bare flush,
and also the old code was firing for FUA bios, for which we don't need
to send a flush to the backing device.

This was causing data corruption somehow - the mechanism was never
determined, but this patch fixes it for the users that were seeing it.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-05 07:13:09 -07:00
..
alloc.c bcache: Allocator cleanup/fixes 2013-04-30 19:14:40 -07:00
bcache.h bcache: Fix a writeback performance regression 2013-10-05 07:13:09 -07:00
bset.c bcache: Fix for handling overlapping extents when reading in a btree node 2013-10-05 07:13:09 -07:00
bset.h
btree.c bcache: Fix a shrinker deadlock 2013-10-05 07:13:09 -07:00
btree.h
closure.c bcache: Fix a dumb race 2013-07-28 16:30:09 -07:00
closure.h
debug.c bcache: Disable broken btree fuzz tester 2013-04-08 13:33:49 -07:00
debug.h
io.c md: bcache: io.c: fix a potential NULL pointer dereference 2013-08-29 09:47:40 -07:00
journal.c bcache: Fix a flush/fua performance bug 2013-10-05 07:13:09 -07:00
journal.h
Kconfig bcache: drop "select CLOSURES" 2013-05-15 00:42:51 -07:00
Makefile
movinggc.c bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
request.c bcache: Fix flushes in writeback mode 2013-10-05 07:13:09 -07:00
request.h
stats.c bcache: Fix error handling in init code 2013-05-15 00:48:14 -07:00
stats.h
super.c bcache: Fix a sysfs splat on shutdown 2013-07-28 16:30:10 -07:00
sysfs.c bcache: Strip endline when writing the label through sysfs 2013-10-05 07:13:09 -07:00
sysfs.h bcache: Don't export utility code, prefix with bch_ 2013-03-28 12:50:55 -06:00
trace.c
util.c bcache: Fix a writeback performance regression 2013-10-05 07:13:09 -07:00
util.h bcache: Fix a writeback performance regression 2013-10-05 07:13:09 -07:00
writeback.c bcache: Fix a dumb CPU spinning bug in writeback 2013-10-05 07:13:09 -07:00