Hi Jason My reply is delayed since I was on vacation. > -----Original Message----- > From: Jason Gunthorpe [mailto:[email protected]] > Sent: Tuesday, May 19, 2015 11:53 PM > To: Selvin Xavier > Cc: Doug Ledford; [email protected] > Subject: Re: [PATCH for-4.1 10/11] RDMA/ocrdma: Prevent returning failures > in the resource destroy path > > On Mon, May 18, 2015 at 05:16:14PM +0530, Selvin Xavier wrote: > > > The driver is returning success for other destroy routines also and > > free the corresponding driver resources. As part of the changes > > suggested by you, we will change all the destroy routines to return > > error status for all the FW command failures and avoid freeing the > > driver resources in case of failure. Since this change need more > > testing, I will drop this patch from the series for 4.1 RC. I will > > cut a patch for 4.2 after our testing. > > Didn't we discuss this already? Destroy routines cannot fail. > > If the card's firmware fails during destroy then that is an unrecoverable error > and your driver and firmware are no longer synchronized. Panic the kernel or > do some kind of (synchronous) card-reset recovery. > > Don't expect the caller to handle this, and don't leak IB core memory when it > happens. > Got it . Will do the same in all destroy APIs.
> Jason Thanks, Selvin -- 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
