Skip to content
Commit 8423ae3d authored by Kent Overstreet's avatar Kent Overstreet Committed by Jens Axboe
Browse files

block: Fix cloning of discard/write same bios



Immutable biovecs changed the way bio segments are treated in such a way that
bio_for_each_segment() cannot now do what we want for discard/write same bios,
since bi_size means something completely different for them.

Fortunately discard and write same bios never have more than a single biovec, so
bio_for_each_segment() is unnecessary and not terribly meaningful for them, but
we still have to special case them in a few places.

Signed-off-by: default avatarKent Overstreet <kmo@daterainc.com>
Tested-by: default avatarRichard W.M. Jones <rjones@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 9d4cb8e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment