Skip to content

Commit d7aaeef

Browse files
Guoqing Jiangaxboe
authored andcommitted
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 <[email protected]> Acked-by: Danil Kipnis <[email protected]> Acked-by: Jack Wang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 735d77d commit d7aaeef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/block/rnbd/rnbd-srv-dev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,5 @@ struct bio *rnbd_bio_map_kern(void *data, struct bio_set *bs,
9999
offset = 0;
100100
}
101101

102-
bio->bi_end_io = bio_put;
103102
return bio;
104103
}

0 commit comments

Comments
 (0)