]> git.baikalelectronics.ru Git - kernel.git/commit
rnbd/rtrs: Pass max segment size from blk user to the rdma library
authorDanil Kipnis <danil.kipnis@cloud.ionos.com>
Tue, 19 May 2020 11:14:19 +0000 (13:14 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:43:26 +0000 (20:43 -0300)
commitb839b44e9b6ded40d3279d8de28eaf5dc28809da
tree7b314dac13ae55f0e8bc97c67c008da358714e34
parent98724740020be631be93bea5b56a55ea44f5236d
rnbd/rtrs: Pass max segment size from blk user to the rdma library

When Block Device Layer is disabled, BLK_MAX_SEGMENT_SIZE is undefined.
The rtrs is a transport library and should compile independently of the
block layer. The desired max segment size should be passed down by the
user.

Introduce max_segment_size parameter for the rtrs_clt_open() call.

Fixes: 32a4f203f8ad ("block/rnbd: client: main functionality")
Fixes: abff70da8ae0 ("RDMA/rtrs: client: main functionality")
Fixes: 2cd436893f8c ("RDMA/rtrs: client: private header with client structs and functions")
Fixes: 93f4e6be9090 ("RDMA/rtrs: public interface header to establish RDMA connections")
Link: https://lore.kernel.org/r/20200519111419.924170-1-danil.kipnis@cloud.ionos.com
Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/block/rnbd/rnbd-clt.c
drivers/infiniband/ulp/rtrs/rtrs-clt.c
drivers/infiniband/ulp/rtrs/rtrs-clt.h
drivers/infiniband/ulp/rtrs/rtrs.h