rnbd: no need to set bi_end_io in rnbd_bio_map_kern

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>
This commit is contained in:
Guoqing Jiang 2020-07-30 11:13:58 +02:00 committed by Jens Axboe
parent 735d77d4fd
commit d7aaeef293
1 changed files with 0 additions and 1 deletions

View 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;
}