]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rtrs-clt: Check if the queue_depth has changed during a reconnection
authorMd Haris Iqbal <haris.iqbal@cloud.ionos.com>
Fri, 28 May 2021 11:30:17 +0000 (13:30 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 May 2021 23:52:59 +0000 (20:52 -0300)
commit016c3eb41e2ef709a43769c14056b10911d612be
treebb96c691c9820849ecad183ce5f05d782a6ed61e
parent78a761df1a483c595a3e3d112ce8f76b5d3f70be
RDMA/rtrs-clt: Check if the queue_depth has changed during a reconnection

The queue_depth is a module parameter for rtrs_server. It is used on the
client side to determing the queue_depth of the request queue for the RNBD
virtual block device.

During a reconnection event for an already mapped device, in case the
rtrs_server module queue_depth has changed, fail the reconnect attempt.

Also stop further auto reconnection attempts. A manual reconnect via
sysfs has to be triggerred.

Fixes: af01783ea5ce8 ("RDMA/rtrs: client: main functionality")
Link: https://lore.kernel.org/r/20210528113018.52290-20-jinpu.wang@ionos.com
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c