Re: [PATCH v3] qla2xxx: Return EBUSY on fcport deletion

From: Daniel Wagner
Date: Tue Oct 13 2020 - 02:52:36 EST


On Tue, Oct 13, 2020 at 10:59:18AM +1100, Finn Thain wrote:
>
> On Mon, 12 Oct 2020, Daniel Wagner wrote:
>
> > When the fcport is about to be deleted we should return EBUSY instead
> > of ENODEV. Only for EBUSY the request will be requeued in a multipath
> > setup.
> >
> > Also in case we have a valid qpair but the firmware has not yet
> > started return EBUSY to avoid dropping the request.
> >
> > Signed-off-by: Daniel Wagner <dwagner@xxxxxxx>
> > ---
> >
> > v3: simplify test logic as suggested by Arun.
>
> Not exactly a "simplification": there was a change of behaviour between v2
> and v3. It seems the commit log no longer reflects the code.

How so? I am struggling to see how it could be a change in behavior. But
then I sometimes fail at simple logic ;)

v2 and v3 will return ENODEV if qpair or fcport are invalid and for
EBUSY one of the other condition needs be true. The difference between
v2 and v3 should only be the order how tests are executed. The outcome
should be the same.