summaryrefslogtreecommitdiff
path: root/drivers/md/md-multipath.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-02-02 19:01:08 +0300
committerJens Axboe <axboe@kernel.dk>2022-02-04 17:43:18 +0300
commita0e8de798dd6710a69d69ec57b246a0e34c4a695 (patch)
treeda8bba878198dc6c1a69f8bfab43c9eecd41fad4 /drivers/md/md-multipath.c
parent92986f6b4c8a2c24d3a36b80140624f80fd93de4 (diff)
downloadlinux-a0e8de798dd6710a69d69ec57b246a0e34c4a695.tar.xz
block: initialize the target bio in __bio_clone_fast
All callers of __bio_clone_fast initialize the bio first. Move that initialization into __bio_clone_fast instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Snitzer <snitzer@redhat.com> Link: https://lore.kernel.org/r/20220202160109.108149-13-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/md-multipath.c')
-rw-r--r--drivers/md/md-multipath.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/md-multipath.c b/drivers/md/md-multipath.c
index 010c759c741a..483a5500f83c 100644
--- a/drivers/md/md-multipath.c
+++ b/drivers/md/md-multipath.c
@@ -121,7 +121,6 @@ static bool multipath_make_request(struct mddev *mddev, struct bio * bio)
}
multipath = conf->multipaths + mp_bh->path;
- bio_init(&mp_bh->bio, NULL, NULL, 0, 0);
__bio_clone_fast(&mp_bh->bio, bio, GFP_NOIO);
mp_bh->bio.bi_iter.bi_sector += multipath->rdev->data_offset;