Skip to content

Commit

Permalink
rnbd: no need to set bi_end_io in rnbd_bio_map_kern
Browse files Browse the repository at this point in the history
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 <guoqing.jiang@cloud.ionos.com>
Acked-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Guoqing Jiang authored and Jens Axboe committed Aug 6, 2020
1 parent 735d77d commit d7aaeef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/block/rnbd/rnbd-srv-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d7aaeef

Please sign in to comment.