Commit db507b3f authored by Mike Snitzer's avatar Mike Snitzer Committed by Jens Axboe

dm: fix multipath regression due to initializing wrong request

Commit febf7158 ("block: require blk_rq_prep_clone() be given an
initialized clone request") introduced a regression by calling
blk_rq_init() on the original request rather than the clone
request that is passed to setup_clone().
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Fixes: febf7158 ("block: require blk_rq_prep_clone() be given an initialized clone request")
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 69abaffe
...@@ -1719,7 +1719,7 @@ static int setup_clone(struct request *clone, struct request *rq, ...@@ -1719,7 +1719,7 @@ static int setup_clone(struct request *clone, struct request *rq,
{ {
int r; int r;
blk_rq_init(NULL, rq); blk_rq_init(NULL, clone);
r = blk_rq_prep_clone(clone, rq, tio->md->bs, GFP_ATOMIC, r = blk_rq_prep_clone(clone, rq, tio->md->bs, GFP_ATOMIC,
dm_rq_bio_constructor, tio); dm_rq_bio_constructor, tio);
if (r) if (r)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment