[PATCH 3/4] nvme-fabrics: add tp8010 support

Belanger, Martin Martin.Belanger at dell.com
Mon Jan 31 08:16:17 PST 2022


> > Hi Sagi. Thanks for the code snippet. I just had a question about your
> comment.
> >
> > You say that you don’t see any point to send an event on the
> > disconnect because it is async.  I don’t quite understand that part.
> > For example, I've observed that when connectivity is lost the kernel
> > will try to connect every
> > 10 sec. And it will keep trying to connect 60 times (i.e. 10 min)
> > before giving up. Wouldn't sending an "offline" event when
> > connectivity is lost give user space apps a heads up that the nvme device
> may not respond.
> 
> Why does userspace need it?
> 
> When the host will disconnect it will send event asynchronously, so
> userspace cannot reliably do anything before the host disconnects.
> Other than that I don't understand what would userspace do with "offline -
> I/O is going to fail"...

I was just asking for completeness. Some apps may use it.

Internal Use - Confidential


More information about the Linux-nvme mailing list