On Thu, Aug 06, 2015 at 03:36:39PM +0000, Liran Liss wrote:
> I don't think that the order matters.

It does if you want a planned 'gental' removal to be possible..

> When you do a surprise removal, you disconnect the application from
> both ucma and uverbs device references.  In this state, the only
> thing that the application can do is close all handles.  It doesn't
> matter if you succeed closing a resource on a device that is still
> accessible, or "close" an already destroyed resource...

Hurm. That makese sense, but that isn't entirely what this patch set
does - it is rough when facing the user, but the kernel side is
actually quite gental.. Ie the RDMA CM still sends GMPs on this
shutdown path.. Looks like the various storage ULP shutdowns are
pretty gental too.

So, it is easy to get confused what the point here is..

> The primary reason for device surprise removal is to recover from
> device fatal errors or PCI errors.

Okay, this makes sense to me. Maybe some more patches will come to be
rougher to the kernel ULPs..

> For the administrative removal use case, can consider providing
> applications a grace period before disconnecting them in a future
> patch set.  Even here, however, I am not sure that if an
> administrator decided to remove a device while there are still
> active applications, we should stall his request.

Well, it can be discussed separately.

As an example, I think it is important, if you
want to hot-unplug a storage controller the admin expects a clean
storage shutdown. I think in-kernel storage drivers do that
already. IB shouldn't really be much different.

> Anyway, let's get this patch-set done.

Still needs to have the locking fixed..

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to