[lkml]   [2020]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3] qla2xxx: Return EBUSY on fcport deletion
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 <>
> > ---
> >
> > 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.

 \ /
  Last update: 2020-10-13 08:53    [W:0.093 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site