diff options
| author | Ming Lei <ming.lei@canonical.com> | 2016-03-12 09:29:40 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-12 09:12:46 -0700 |
| commit | 58ed317ee8af7b4f346595b0a91c8d9e70058691 (patch) | |
| tree | 2c467639f99fce978fb21323f6fec573a4fb2dc5 /kernel/sysctl_binary.c | |
| parent | feea432b4968e19216e7fd3fedc6b183556474e4 (diff) | |
| download | lwn-58ed317ee8af7b4f346595b0a91c8d9e70058691.tar.gz lwn-58ed317ee8af7b4f346595b0a91c8d9e70058691.zip | |
md: multipath: don't hardcopy bio in .make_request path
commit fafcde3ac1a418688a734365203a12483b83907a upstream.
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.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
