Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2391365ybg; Fri, 5 Jun 2020 12:43:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlZ8ZYjVFIZzkMBAbTv6NsyylsiHbS9fcpI0RysybGRqOcsFbHaUpB1NQkLdLe22oSfzM3 X-Received: by 2002:a17:906:1d52:: with SMTP id o18mr9482952ejh.399.1591386180847; Fri, 05 Jun 2020 12:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591386180; cv=none; d=google.com; s=arc-20160816; b=xxVQZahnup/3FD2vP1tuZlhyYUmP1XmsDUh69pPXVSyIfpx5GR4vzZXQBXc6Z7XLDD BOYFTpnoPFs2yVuYBSz9oMImKU6CJsUhZPgKXDPZPXfNujBEoFIDtO+mGYAsDHimsqMV 3Aw2axCy041lsplzk30ZOzKugNgakjXAea8SaGGD3VbNqPniqV0xjQ29ILi3pkr/4MzI HTBlunLDZ+WJDhxmE2CnlFTGIwkFwVbxbQXTV7QYm3fgZIeTaT3Vy3stUW35kxdAZjIC T26ZsZeLbc3hVchG+SUszIaPvbT5z6NvtEdqHngCn3nk5uaLp6MpcVpOHui0tb0eDraa XYRQ== 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:dkim-signature; bh=XD9SvQZCXqBYsn01rJ4+6okeD2WJfdjImO5gHn5OfAs=; b=M0bZkTuhwpNiCD/xg5qgQslPCQP84oFEIxLILuKNzg9MBKt3CHvV5jLl43X/bpLpxd pl4GyD2o/KT8LaPk8PSPAN9ukMxrlLXO1E5T8Gm4BN1QcTNejvRmcewSF+PuEehAYl1S LdwaRPvhi4ph2jMJh7pP9TtkX6q5ElDUuPndM58+wr5PlLJl2SsXqVptcuKynp8q3dcx ZVvwdGw3wn5LyqBkxE8GI20t4R7YryLCIVSuIeRmFyE8VfK2RwsMNntkAIxkCTATNAYP EJ7gMeU7WIFtUwuXGecTpMEdPiH5YeHtP7A7jMAH1d8WWp5gEUzfc+KG9wCGZjPVgp2c Bb5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bnJxDETT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zb3si462335ejb.610.2020.06.05.12.42.37; Fri, 05 Jun 2020 12:43:00 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bnJxDETT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727935AbgFETku (ORCPT + 99 others); Fri, 5 Jun 2020 15:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727087AbgFETkt (ORCPT ); Fri, 5 Jun 2020 15:40:49 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62ADFC08C5C2; Fri, 5 Jun 2020 12:40:49 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id d8so934642plo.12; Fri, 05 Jun 2020 12:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XD9SvQZCXqBYsn01rJ4+6okeD2WJfdjImO5gHn5OfAs=; b=bnJxDETTne1L69aD8HMa3+kqe0sCzIsfxsY/YGV+blK3BmwxALlVA3u7SAzSgUmOnl Z6vkaXeq1Oll41yzGDjLdhJrjYykohJ9ZMVm+8VJp0451xMrw2obIW8B2NJ81JC9UN43 eOpQFIYIHQF3Yq7Eh2EfJZjwrtAN20rvfknSbj69OMBiMyO+vYv5t8et8k/frbSnKym1 jsPzZ9m2bhn9aBApE58LENVDX+Zwt3H5Z87CV5kPJZs6oqAPNJTx8XZoa//yWYIIyKpC rbIlTj4JXsNRWc7BjOhLFA3/i09wwxHjH/kdv+KAdrs6i6oon9gYXXYxgg1T1BsmFC6B 5UrA== 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=XD9SvQZCXqBYsn01rJ4+6okeD2WJfdjImO5gHn5OfAs=; b=SoUyl28PU2DKb6Y12jEFbpaxM9OB/vt1u1hU67SCooDyJo8nFYlQbLQ0jcBj/E6kFr A8FKOvVU5epw0rA/1PGbCyNCyRgI9p1x/UFWgJJmrrDEqcpynt2QuPLz9WdCUwXt5TjK ZtisQ5vmPjuyaSGM7JJ+jvLcxKejhNNL7K1L5MyOsoY6QAnae2Tnl52QnruiZ2TsKpCm suBnfQjq8qaD5wNwvwSxP/MNfzDoo9c0flObwwNbkTwcyhCXYBRB+rgGIy8BYFuX7lcF /uIuukoolGx1xJECeTvsm2d9uO6qc+g5rSLj/M10dCrPMcYaFsYG63gL7zXDTiOgoPHH jMBA== X-Gm-Message-State: AOAM531fy9YWyz8pRgpmbdsz7MQxLJ03bs9firWO0e6wy+dwV3vO9uZS YhTWiyf17p7wEKbEN7SAFNClHan6D4wCoBZuwf0= X-Received: by 2002:a17:90a:1704:: with SMTP id z4mr4668507pjd.181.1591386048635; Fri, 05 Jun 2020 12:40:48 -0700 (PDT) MIME-Version: 1.0 References: <158889473309.2292982.18007035454673387731.stgit@dwillia2-desk3.amr.corp.intel.com> <2643462.teTRrieJB7@kreacher> In-Reply-To: <2643462.teTRrieJB7@kreacher> From: Andy Shevchenko Date: Fri, 5 Jun 2020 22:40:36 +0300 Message-ID: Subject: Re: [RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management To: "Rafael J. Wysocki" Cc: 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 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; -- With Best Regards, Andy Shevchenko