summaryrefslogtreecommitdiff
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-02-02 20:19:28 +0300
committerJens Axboe <axboe@kernel.dk>2021-02-08 18:33:16 +0300
commit72b043654ba8b8ce2e0cf3da49247b2db3acb2c1 (patch)
tree055b96e3addf9e71388c1842844fc7abed849614 /drivers/md/raid10.c
parent977be01273844626ddeef4a464b42b99418d76e6 (diff)
downloadlinux-72b043654ba8b8ce2e0cf3da49247b2db3acb2c1.tar.xz
md/raid10: remove dead code in reshape_request
A bio allocated by bio_alloc_bioset comes pre-zeroed, no need to clear random fields. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Song Liu <song@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index e1eefbec15d4..a9ae7d113492 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -4539,10 +4539,6 @@ read_more:
read_bio->bi_private = r10_bio;
read_bio->bi_end_io = end_reshape_read;
bio_set_op_attrs(read_bio, REQ_OP_READ, 0);
- read_bio->bi_flags &= (~0UL << BIO_RESET_BITS);
- read_bio->bi_status = 0;
- read_bio->bi_vcnt = 0;
- read_bio->bi_iter.bi_size = 0;
r10_bio->master_bio = read_bio;
r10_bio->read_slot = r10_bio->devs[r10_bio->read_slot].devnum;