diff options
author | Christoph Hellwig <hch@lst.de> | 2022-01-24 10:10:58 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-02-02 15:49:59 +0100 |
commit | 1fe0640ff94feae6d21417e2f4f2829b882274b1 (patch) | |
tree | abca744d39f5b5d777816553726c402c46e0a28d /drivers/block/rnbd/rnbd-srv-dev.h | |
parent | drbd: bio_alloc can't fail if it is allow to sleep (diff) | |
download | linux-1fe0640ff94feae6d21417e2f4f2829b882274b1.tar.xz linux-1fe0640ff94feae6d21417e2f4f2829b882274b1.zip |
rnbd-srv: simplify bio mapping in process_rdma
The memory mapped in process_rdma is contiguous, so there is no need
to loop over bio_add_page. Remove rnbd_bio_map_kern and just open code
the bio allocation and mapping in the caller.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jack Wang <jinpu.wang@ionons.com>
Tested-by: Jack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20220124091107.642561-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rnbd/rnbd-srv-dev.h')
-rw-r--r-- | drivers/block/rnbd/rnbd-srv-dev.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/block/rnbd/rnbd-srv-dev.h b/drivers/block/rnbd/rnbd-srv-dev.h index 0eb23850afb9..1a14ece0be72 100644 --- a/drivers/block/rnbd/rnbd-srv-dev.h +++ b/drivers/block/rnbd/rnbd-srv-dev.h @@ -41,11 +41,6 @@ void rnbd_dev_close(struct rnbd_dev *dev); void rnbd_endio(void *priv, int error); -void rnbd_dev_bi_end_io(struct bio *bio); - -struct bio *rnbd_bio_map_kern(void *data, struct bio_set *bs, - unsigned int len, gfp_t gfp_mask); - static inline int rnbd_dev_get_max_segs(const struct rnbd_dev *dev) { return queue_max_segments(bdev_get_queue(dev->bdev)); |