]> www.infradead.org Git - users/hch/block.git/commit
rnbd-srv: simplify bio mapping in process_rdma
authorChristoph Hellwig <hch@lst.de>
Fri, 14 Jan 2022 07:32:48 +0000 (08:32 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:07:56 +0000 (10:07 +0100)
commit500caf487f85d6bcce8578036f176d94d7b3c84d
tree6ce55f7b7b3b26c4cc90c518ba53ba889d988b94
parentaf3c1ffe4b96f59a7a0963eff2d2f0ada1cfcdf8
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>
drivers/block/rnbd/rnbd-srv-dev.c
drivers/block/rnbd/rnbd-srv-dev.h
drivers/block/rnbd/rnbd-srv.c