summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2015-02-09 12:21:54 -0500
committerJens Axboe <axboe@fb.com>2015-02-09 10:46:08 -0700
commitdb507b3ffd9b7a1c87e732ac6e2c3a5d0babb15a (patch)
tree95f5f28682cfb18a4d60c65b1d5551aef4355e27 /drivers/md
parent69abaffec7d47a083739b79e3066cb3730eba72e (diff)
downloadop-kernel-dev-db507b3ffd9b7a1c87e732ac6e2c3a5d0babb15a.zip
op-kernel-dev-db507b3ffd9b7a1c87e732ac6e2c3a5d0babb15a.tar.gz
dm: fix multipath regression due to initializing wrong request
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: febf71588c2a ("block: require blk_rq_prep_clone() be given an initialized clone request") Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index f251633..71e6b73 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -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)
OpenPOWER on IntegriCloud