[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75Ve8A373Cbw6RiKTtkhj9jsxZ9dBY8ELtntk0B=yXxOCUg@mail.gmail.com>
Date: Fri, 5 Jun 2020 22:40:36 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: "Rafael J. Wysocki" <rjw@...ysocki.net>
Cc: Dan Williams <dan.j.williams@...el.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Stable <stable@...r.kernel.org>, Len Brown <lenb@...nel.org>,
Borislav Petkov <bp@...en8.de>,
Ira Weiny <ira.weiny@...el.com>,
James Morse <james.morse@....com>,
Erik Kaneda <erik.kaneda@...el.com>,
Myron Stowe <myron.stowe@...hat.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
linux-nvdimm@...ts.01.org
Subject: Re: [RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management
On Fri, Jun 5, 2020 at 5:11 PM Rafael J. Wysocki <rjw@...ysocki.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;
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists