diff options
author | 2016-03-12 09:29:40 +0800 | |
---|---|---|
committer | 2016-03-14 11:32:26 -0700 | |
commit | fafcde3ac1a418688a734365203a12483b83907a (patch) | |
tree | e3b7fa42dd60f877f1cafec8f305fbdc1a75b0c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md/raid5: output stripe state for debug (diff) | |
download | linux-dev-fafcde3ac1a418688a734365203a12483b83907a.tar.xz linux-dev-fafcde3ac1a418688a734365203a12483b83907a.zip |
md: multipath: don't hardcopy bio in .make_request path
Inside multipath_make_request(), multipath maps the incoming
bio into low level device's bio, but it is totally wrong to
copy the bio into mapped bio via '*mapped_bio = *bio'. For
example, .__bi_remaining is kept in the copy, especially if
the incoming bio is chained to via bio splitting, so .bi_end_io
can't be called for the mapped bio at all in the completing path
in this kind of situation.
This patch fixes the issue by using clone style.
Cc: stable@vger.kernel.org (v3.14+)
Reported-and-tested-by: Andrea Righi <righi.andrea@gmail.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions