]> Git Repo - linux.git/commitdiff
rnbd: no need to set bi_end_io in rnbd_bio_map_kern
authorGuoqing Jiang <[email protected]>
Thu, 30 Jul 2020 09:13:58 +0000 (11:13 +0200)
committerJens Axboe <[email protected]>
Thu, 6 Aug 2020 13:30:04 +0000 (07:30 -0600)
Since we always set bi_end_io after call rnbd_bio_map_kern, so the
setting in rnbd_bio_map_kern is redundant.

Signed-off-by: Guoqing Jiang <[email protected]>
Acked-by: Danil Kipnis <[email protected]>
Acked-by: Jack Wang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/block/rnbd/rnbd-srv-dev.c

index 49c62b506c9b6f565e633bae212de4119ae3f79b..b241a099aeae2f91ebeccb2c78a2c2b6d20da07c 100644 (file)
@@ -99,6 +99,5 @@ struct bio *rnbd_bio_map_kern(void *data, struct bio_set *bs,
                offset = 0;
        }
 
-       bio->bi_end_io = bio_put;
        return bio;
 }
This page took 0.057291 seconds and 4 git commands to generate.