Re: [PATCH v0 1/6] nvme-fabrics: introduce connect_sync option

From: Daniel Wagner
Date: Fri Feb 16 2024 - 11:44:14 EST


On Fri, Feb 16, 2024 at 10:49:09AM +0100, Christoph Hellwig wrote:
> On Fri, Feb 16, 2024 at 09:45:21AM +0100, Daniel Wagner wrote:
> > The TCP and RDMA transport are doing a synchronous connect, meaning the
> > syscal returns with the final result, that is. it either failed or
> > succeeded.
> >
> > This isn't the case for FC. This transport just setups and triggers
> > the connect and returns without waiting on the result.
>
> That's really weird and unexpected. James, can you explain the reason
> behind this?

James answered this point on my attempt to make this synchronous:

https://lore.kernel.org/linux-nvme/0605ac36-16d5-2026-d3c6-62d346db6dfb@xxxxxxxxx/

> > Introduce a flag
> > to allow user space to control the behavior, wait or don't wait.
>
> I'd expect this to be the default, but I'll wait to hear more about
> the rationale. If we keep the async default the option looks sensible.

Ideally, we could agree on behavior which is the same for all
transports.