[Suspected-Phishing]Re: [PATCH 2/2] nvmet: Add port transport active flag

Max Gurtovoy maxg at mellanox.com
Wed Mar 21 10:02:03 PDT 2018


Guys,
we have a V2 in the pipe with trstate (RO attr). do you prefer 1/0 
output or "UP/DOWN" ? I realy don't mind.
Second question is regarding the re-activation. We want to create a WO 
attr "tractivate" for users to be able to activate port that for some 
reason fall down. We can also send a simple script for systemd 
service/timer that will bring up a port that should be active but isn't.
Also patches for nvmetcli are ready, but we need to decide the wanted 
approach so we can integrate it all together.

-Max.

On 3/20/2018 2:10 PM, Max Gurtovoy wrote:
> 
> 
> On 3/20/2018 1:30 PM, Sagi Grimberg wrote:
>>
>>>>> tractive port flag means that nvmet transport is active and ready for
>>>>> receiving requests from host.
>>>>> It differ from enabled port state (port with subsystem symbolic link)
>>>>> which doesn't guarantee this.
>>>>> The tractive flag is necessary in case the physical ports become down
>>>>> while nvmet ports are enabled.
>>>>> In this case the port state remains enabled but tractive flag 
>>>>> becomes false.
>>>>>
>>>>> The tractive flag will help the administrator to monitor the port 
>>>>> state
>>>>> from transport point of view.
>>>>> The commit also add the ability to activate the port by simply writing
>>>>> to tractive at the configfs.
>>>>> e.g.: echo 1 > config/nvmet/ports/1/tractive
>>>>
>>>> Why this is a write-able variable? this is a state. I would rename it
>>>> to be trstate.
>>>
>>> We need a write-able entry to bring-up a listener in case the 
>>> port/link went down.
>>> Would you prefer 2 new configfs entries ? trstate (RO) and tractivate 
>>> (WO) ?
>>
>> No, I would prefer a trstate which is RO and activation with a subsystem
>> symlink. We can easily take care of re-activation in the transport.
> 
> The initial activation is done using a subsystem symlink.
> Please share your idea for re-activation (IIRC you were against 
> re-activation in the kernel and prefered a user space re-activation).
> We are reffering to situations where the LLD is unloaded or some other 
> fatal event occur (EEH on Power systems for example)...
> 
> _______________________________________________
> Linux-nvme mailing list
> Linux-nvme at lists.infradead.org
> https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.infradead.org%2Fmailman%2Flistinfo%2Flinux-nvme&data=02%7C01%7Cmaxg%40mellanox.com%7Cdffa06e2153a4878d57c08d58e5ba93c%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636571446705152203&sdata=qZJNH2ZerwtdhgJSvA8Pb89L%2BUJbsf2MxLgx7eh%2BVZo%3D&reserved=0 
> 



More information about the Linux-nvme mailing list