]> git.baikalelectronics.ru Git - kernel.git/commit
rnbd-srv: simplify bio mapping in process_rdma
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Jan 2022 09:10:58 +0000 (10:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 2 Feb 2022 14:49:59 +0000 (07:49 -0700)
commit6ff06b8408a08f4b5b2f4d29068fe2194d10496a
treeabca744d39f5b5d777816553726c402c46e0a28d
parent2559274f6227d044de5d7019aab427c363cb6fe6
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>
drivers/block/rnbd/rnbd-srv-dev.c
drivers/block/rnbd/rnbd-srv-dev.h
drivers/block/rnbd/rnbd-srv.c