[PATCH 1/2] nvme: send uevent on connection up

Chaitanya Kulkarni chaitanyak at nvidia.com
Thu Feb 3 04:46:03 PST 2022


On 2/2/22 13:34, Martin Belanger wrote:
> From: Martin Belanger <martin.belanger at dell.com>
> 
> When connectivity with a controller is lost, the driver will keep trying
> to reconnect once every 10 sec. When connection is restored, user-space
> apps need to be informed so that they can take proper action. For
> example, TP8010 introduces the DIM PDU, which is used to register with
> a discovery controller (DC). The DIM PDU is sent from user-space.  The
> DIM PDU must be sent every time a connection is established with a DC.
> Therefore, the kernel must tell user-space apps when connection is
> restored so that registration can happen.
> 
> The uevent sent is a "change" uevent with environmental data
> set to: "NVME_EVENT=connected".
> 
> Signed-off-by: Martin Belanger <martin.belanger at dell.com>
> ---

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>




More information about the Linux-nvme mailing list