linux/drivers/infiniband/ulp
Gioh Kim 07c1402729 RDMA/rtrs-srv: Duplicated session name is not allowed
If two clients try to use the same session name, rtrs-server generates a
kernel error that it failed to create the sysfs because the filename
is duplicated.

This patch adds code to check if there already exists the same session
name with the different UUID. If a client tries to add more session,
it sends the UUID and the session name. Therefore it is ok if there is
already same session name with the same UUID. The rtrs-server must fail
only-if there is the same session name with the different UUID.

Link: https://lore.kernel.org/r/20210528113018.52290-17-jinpu.wang@ionos.com
Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: Aleksei Marov <aleksei.marov@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-05-28 20:52:58 -03:00
..
ipoib IB/ipoib: Use DEVICE_ATTR_*() macros 2021-05-28 20:39:16 -03:00
iser RDMA/iser: struct iscsi_iser_task is declared twice 2021-03-30 19:53:08 -03:00
isert IB/isert: set rdma cm afonly flag 2021-05-28 20:24:52 -03:00
opa_vnic RDMA: Convert comma to semicolon 2021-01-07 13:53:41 -04:00
rtrs RDMA/rtrs-srv: Duplicated session name is not allowed 2021-05-28 20:52:58 -03:00
srp RDMA/srp: Use DEVICE_ATTR_*() macros 2021-05-28 20:40:29 -03:00
srpt IB/srpt: Remove redundant assignment to ret 2021-05-11 13:42:17 -03:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00