Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2741356ybg; Fri, 5 Jun 2020 23:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1o7bWGwqHCT7Wh2dRKZPLDRrdOhlBE0z7p1+LjaqMGd/70KLJSCf/cVzWTTU0ieQV0lL9 X-Received: by 2002:a17:906:f74a:: with SMTP id jp10mr12072255ejb.43.1591426226112; Fri, 05 Jun 2020 23:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591426226; cv=none; d=google.com; s=arc-20160816; b=00xOkn0n3jaobPBwFzgwExHHtMEBnfEWAkE22wT+pF/jwQClSXn3K8IKkMnCr+mPmT elLY8pohTHyGFM651y1Jo5dD4Gn5cIFR9oQLS3U6de3V8klRLeej83JSbuqjA0EFSKyw arBTtbIJFA/anOV6vcvOttycw6WGxEanmgjQkBfKXpkpE0FEgi7ZqMpSkIMYF5y2lj+6 7fjj0tYQXS4KwXPQFXBYRH5DNZNWmSgZg/WB5m2hF2kuMDwyjmAKya2aG1oT5rzYXyaF VgeL2l7lRD05cwDF+ZGwnOPc3egHFVJpiEYYP4fVVwKa5lEcaXdAyo3n7Ps5b0NMsJC+ mFVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=+aQLNzslwbNr61yynEZEbahvlkcr5toggFOf8ArYr9g=; b=bQWVA0P8FWUwtzhFjmdqDExPrKOeBws7XMI79VK+KhOrwHv0Ebh/gkR/vhWYss9U/Q NGNWg3fVjMUDhfYQZx8NmyFneQIrPPdzZchzwaDCyM2wQcqQYKaw8nkA9cz7Lnpb5shv iXk0mm4qDsYnkE7gae1wjw8hlfcNGHs0TneNJkuNvTyMqavG35U1n+y6GGP8uZtZ+K+g X9DtQS3fKNLuvAJEmdCRsxdjowLDRSFyqp+k2zvlnmIj33a/QJKW4Igul5ohN9zCAdxY pv00NgL1xbrU/uKXkYlJpiWhw/qDV7u0bkjtJWnEp2EOl8g3affrYfDueQpq9mKoqOsc YrRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si4496086ejk.122.2020.06.05.23.50.04; Fri, 05 Jun 2020 23:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728581AbgFFGsS (ORCPT + 99 others); Sat, 6 Jun 2020 02:48:18 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40626 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725964AbgFFGsR (ORCPT ); Sat, 6 Jun 2020 02:48:17 -0400 Received: by mail-ot1-f66.google.com with SMTP id s13so9463929otd.7; Fri, 05 Jun 2020 23:48:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+aQLNzslwbNr61yynEZEbahvlkcr5toggFOf8ArYr9g=; b=nZqUn++F0zY91CAYdLJVCUedTAHNVxBByrpqhp/SySY38bQpdNhAV+1rm6XLbI0HFZ O8kQFjIeO3ouCGmgEDsiLYOrTDxKAc5XfxSJZsA+gjnMnhgJJ/CXWhwtrWPvdQrMxYJk gvvMJiof5pKjPwSalhx0ZmdM6JeA1iZzbnR9eqD0T+z8Iez5dkf+SVhp2Bt4H6o8qtSt bS2ZmeT0bLUkTF0SFd0W6x1FYzMvAgYkDrRzJFwfUu+yWwLmwCnUmoPJ93mBWscQPd2X D+S3meGDFWe1jnxGBZFAg8vZMVwscDWMd/OGZmqJzGiZUAshnWNDnvJmqvywnLhbGyOc A1AQ== X-Gm-Message-State: AOAM531Clx5eYL+5n1oORPDyyAZl3sWVN7c3ErZ52FBQUXPzEF55M1Bw vIT/NWGXfcbytQX3QcGqxsFXYN+X5PYhlEOHXj0= X-Received: by 2002:a9d:5185:: with SMTP id y5mr9787455otg.118.1591426096725; Fri, 05 Jun 2020 23:48:16 -0700 (PDT) MIME-Version: 1.0 References: <158889473309.2292982.18007035454673387731.stgit@dwillia2-desk3.amr.corp.intel.com> <2643462.teTRrieJB7@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Sat, 6 Jun 2020 08:48:05 +0200 Message-ID: Subject: Re: [RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Dan Williams , "Rafael J. Wysocki" , Stable , Len Brown , Borislav Petkov , Ira Weiny , James Morse , Erik Kaneda , Myron Stowe , Andy Shevchenko , Linux Kernel Mailing List , ACPI Devel Maling List , "linux-nvdimm@lists.01.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2020 at 9:40 PM Andy Shevchenko wrote: > > On Fri, Jun 5, 2020 at 5:11 PM Rafael J. Wysocki 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.