diff options
| author | Josef Bacik <[email protected]> | 2012-10-19 16:50:56 -0400 |
|---|---|---|
| committer | Josef Bacik <[email protected]> | 2012-12-11 13:31:32 -0500 |
| commit | de1ee92ac3bce4c9d760016c4d6198158e6e2f15 (patch) | |
| tree | dc50044005ce08b77dbf1aa896082c6e031850b0 /tools/perf/scripts/python | |
| parent | 08e007d2e57744472a9424735a368ffe6d625597 (diff) | |
Btrfs: recheck bio against block device when we map the bio
Alex reported a problem where we were writing between chunks on a rbd
device. The thing is we do bio_add_page using logical offsets, but the
physical offset may be different. So when we map the bio now check to see
if the bio is still ok with the physical offset, and if it is not split the
bio up and redo the bio_add_page with the physical sector. This fixes the
problem for Alex and doesn't affect performance in the normal case. Thanks,
Reported-and-tested-by: Alex Elder <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions