lkml.org 
[lkml]   [2020]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management
On Fri, Jun 5, 2020 at 9:40 PM Andy Shevchenko
<andy.shevchenko@gmail.com> wrote:
>
> On Fri, Jun 5, 2020 at 5:11 PM Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
>
> ...
>
> > + if (!refcount) {
> > + write_lock_irq(&acpi_ioremaps_list_lock);
> > +
> > + list_del(&map->list);
> > +
> > + write_unlock_irq(&acpi_ioremaps_list_lock);
> > + }
> > return refcount;
>
> It seems we can decrease indentation level at the same time:
>
> if (refcount)
> return refcount;
>
> ...
> return 0;

Right, but the patch will need to be dropped anyway I think.

\
 
 \ /
  Last update: 2020-06-06 08:49    [W:0.370 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site