Thread (33 messages) 33 messages, 4 authors, 2021-08-06

Re: [PATCH for-next 09/10] RDMA/rtrs: Add support to disable an IB port on the storage side

From: Haris Iqbal <haris.iqbal@ionos.com>
Date: 2021-08-06 10:14:17

On Fri, Aug 6, 2021 at 3:22 AM Jason Gunthorpe [off-list ref] wrote:
On Mon, Aug 02, 2021 at 07:43:05PM +0200, Haris Iqbal wrote:
quoted
On Mon, Aug 2, 2021 at 6:36 PM Leon Romanovsky [off-list ref] wrote:
quoted
On Mon, Aug 02, 2021 at 04:31:01PM +0200, Haris Iqbal wrote:
quoted
On Mon, Aug 2, 2021 at 9:30 AM Leon Romanovsky [off-list ref] wrote:
quoted
On Fri, Jul 30, 2021 at 03:18:31PM +0200, Jack Wang wrote:
quoted
From: Md Haris Iqbal <redacted>

This commit adds support to reject connection on a specific IB port which
can be specified in the added sysfs entry for the rtrs-server module.

Example,

$ echo "mlx4_0 1" > /sys/class/rtrs-server/ctl/disable_port

When a connection request is received on the above IB port, rtrs_srv
rejects the connection and notifies the client to disable reconnection
attempts. A manual reconnect has to be triggerred in such a case.

A manual reconnect can be triggered by doing the following,

echo 1 > /sys/class/rtrs-client/blya/paths/<select-path>/reconnect
<...>
quoted
quoted
And maybe Jason thinks differently, but I don't feel comfortable with
such new sysfs file at all.
This part is much more important and should be cleared before resending.
Agreed. I will wait for Jason to respond.
Based on some past conversation with Greg I'm skeptical he would
approve of this kind of usage of sysfs..

It is also very strange that this is under a class directory, I'm
starting to think it was a mistake to merge the original sysfs stuff
:(

Can you do this some other way?
I understand the discomfort. I will try to see if there is another way
to do this.

In the meanwhile, I will resend the other patches which has been reviewed.

Thanks.
Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help