aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2013-09-24 06:17:36 +0000
committerLinus Torvalds <[email protected]>2013-09-24 21:41:43 +0000
commitc0f04d88e46d14de51f4baebb6efafb7d59e9f96 (patch)
tree0d4a828d7eb2d482b0db847b9469ba29924ae576 /fs/btrfs/dev-replace.c
parentbcache: Fix for handling overlapping extents when reading in a btree node (diff)
downloadkernel-c0f04d88e46d14de51f4baebb6efafb7d59e9f96.tar.gz
kernel-c0f04d88e46d14de51f4baebb6efafb7d59e9f96.zip
bcache: Fix flushes in writeback mode
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 <[email protected]> Cc: linux-stable <[email protected]> # >= v3.10 Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions