RE: drivers/scsi/fnic/fdls_disc.c:263 fdls_schedule_oxid_free_retry_work() warn: inconsistent indenting

From: Karan Tilak Kumar (kartilak)
Date: Thu Feb 20 2025 - 17:15:07 EST


On Wednesday, February 19, 2025 9:50 PM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
>
> On Thu, Feb 20, 2025 at 03:10:26AM +0000, Karan Tilak Kumar (kartilak) wrote:
> > On Saturday, February 15, 2025 1:03 PM, Karan Tilak Kumar (kartilak) wrote:
> > >
> > > On Friday, February 14, 2025 7:03 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> > > >
> > > > On Fri, Feb 14, 2025 at 05:42:25PM +0300, Dan Carpenter wrote:
> > > > >
> > > > > I guess we can't call schedule_delayed_work() without holding the
> > > > > spin_lock? It's a strange thing.
> > > >
> > > > Actually, I see now that we're just dropping the lock to avoid a sleeping
> > > > in atomic warning with the GFP_ATOMIC allocation... I bet you could make
> > > > the code under the lock much smaller. Just the test_and_clear_bit() stuff
> > > > basically.
> > > >
> > > > regards,
> > > > dan carpenter
> >
> > The window can be further reduced by adding the lock/unlock around the list_add_tail. But this looks good too.
> >
>
> Could you send the patch for this. I don't know the code that well and
> can't test it.
>
> regards,
> dan carpenter
>
>

Sure Dan. I'll test the code and send out the patches.

Regards,
Karan