Skip to content

Commit

Permalink
dm: fix multipath regression due to initializing wrong request
Browse files Browse the repository at this point in the history
Commit febf715 ("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: Mike Snitzer <snitzer@redhat.com>
Fixes: febf715 ("block: require blk_rq_prep_clone() be given an initialized clone request")
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Mike Snitzer authored and Jens Axboe committed Feb 9, 2015
1 parent 69abaff commit db507b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@ static int setup_clone(struct request *clone, struct request *rq,
{
int r;

blk_rq_init(NULL, rq);
blk_rq_init(NULL, clone);
r = blk_rq_prep_clone(clone, rq, tio->md->bs, GFP_ATOMIC,
dm_rq_bio_constructor, tio);
if (r)
Expand Down

0 comments on commit db507b3

Please sign in to comment.