summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2016-04-15 18:51:28 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-04 14:48:39 -0700
commit9fed24fe30c1217c640d2b38403034c2c7fdce12 (patch)
tree989f5fee7b0d731b13b5f4bc31042a045c6ffc21 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent5b616a05de88d4be0136156a26fae9da855939f6 (diff)
block: loop: fix filesystem corruption in case of aio/dio
commit a7297a6a3a3322b054592e8e988981d2f5f29cc4 upstream. Starting from commit e36f620428(block: split bios to max possible length), block core starts to split bio in the middle of bvec. Unfortunately loop dio/aio doesn't consider this situation, and always treat 'iter.iov_offset' as zero. Then filesystem corruption is observed. This patch figures out the offset of the base bvevc via 'bio->bi_iter.bi_bvec_done' and fixes the issue by passing the offset to iov iterator. Fixes: e36f6204288088f (block: split bios to max possible length) Cc: Keith Busch <keith.busch@intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions