summaryrefslogtreecommitdiff
path: root/sound/pci/korg1212
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-12-17 17:51:02 -0800
committerKent Overstreet <kmo@daterainc.com>2014-01-08 13:05:06 -0800
commitef71ec00002d92a08eb27e9d036e3d48835b6597 (patch)
tree0a7f8e6a199076bcd4524cc326776085dd52e7bd /sound/pci/korg1212
parent54a387cb9e600256e50cb9e2209e7e4f06f464de (diff)
bcache: Data corruption fix
The code that handles overlapping extents that we've just read back in from disk was depending on the behaviour of the code that handles overlapping extents as we're inserting into a btree node in the case of an insert that forced an existing extent to be split: on insert, if we had to split we'd also insert a new extent to represent the top part of the old extent - and then that new extent would get written out. The code that read the extents back in thus not bother with splitting extents - if it saw an extent that ovelapped in the middle of an older extent, it would trim the old extent to only represent the bottom part, assuming that the original insert would've inserted a new extent to represent the top part. I still haven't figured out _how_ it can happen, but I'm now pretty convinced (and testing has confirmed) that there's some kind of an obscure corner case (probably involving extent merging, and multiple overwrites in different sets) that breaks this. The fix is to change the mergesort fixup code to split extents itself when required. Signed-off-by: Kent Overstreet <kmo@daterainc.com> Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Diffstat (limited to 'sound/pci/korg1212')
0 files changed, 0 insertions, 0 deletions