diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2020-07-30 11:13:58 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-08-06 07:30:04 -0600 |
commit | d7aaeef293404bc41ea9d51c20a518945eb38366 (patch) | |
tree | e5e47b2ab3dc20df39bbaa3da66622a0b5584e71 /drivers/block | |
parent | 735d77d4fd28bd47db9998a3744346302f8c1ee9 (diff) | |
download | linux-d7aaeef293404bc41ea9d51c20a518945eb38366.tar.bz2 |
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rnbd/rnbd-srv-dev.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/block/rnbd/rnbd-srv-dev.c b/drivers/block/rnbd/rnbd-srv-dev.c index 49c62b506c9b..b241a099aeae 100644 --- a/drivers/block/rnbd/rnbd-srv-dev.c +++ b/drivers/block/rnbd/rnbd-srv-dev.c @@ -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; } |