Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2168846pxa; Mon, 24 Aug 2020 07:08:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/x4GA12y/1mj3XpPWuVRvGTWcIMAmIWWis+VnFisT06GdLI5ui8h+VyDwyRdeLwH4W+Hm X-Received: by 2002:a50:fe0a:: with SMTP id f10mr5378303edt.264.1598278107498; Mon, 24 Aug 2020 07:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598278107; cv=none; d=google.com; s=arc-20160816; b=WaQ0y0ik3w+UV1mn7prjn4JhHJZHtdlrinfP6lLeHA9Dzep1j7rDhQkBm6ljp27lse fILDubBJxT23uT6/7qmy7R4HT5U9kqMipeaUt0jffp2V/8Sp4W3G+ERYQ6HOYybGPK63 jrhZmkJJvZRvHJLglL3z6ubTV88Fg3Ad9bAUofEGOFMrAQ8V2Mp4rIec36xI4DLdwbcB hWDKvhTkD7qL1YREbjM3yQvWLnY+zvKxOtYPa4nTlreUuHzuVPm3TT3a9XQJ0h9grlwf kXsRYg4REPvZWPsv0EoaEIAzHsg3DWRq8MDHUtZWZEzvDYYMD+UlP/bGasrhuFRk36EL qWvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=rNmwFOYHQ9vnbSWtCEG1C+3ltcDzL8J53jOnSlcUuNQ=; b=sb+d6+RZn8KjwIHA3qsgOaxQWLc7BHkHJ/vf8hAz3fKNMw2WQ+Rd9IpzQEi87Lc+Sh +dmK8d6VyH7sXjMNZoFT1v22eLl2mmYC65/UL2fv5tPuTD2s0/IBlLg6SOP6ozyV091z +gpUTVTGiTA/m2cLEMwEDGaZUFS49+o3fJLpa4nmzCVENgfM+qS9pLDA3w0ip0oeeV0a c81amgeXnJjFSfBHnZ5YS8+xUMIJHVLslnGTE+1c7Bcpz/U+JciS9XigROwGqjnm2A5V gQKN7bOzmakg4dX0Iy8gyMT3m5SwLGn7u3mncVGyytNtQnSCO3gCVyXbvq6Jy+kMDGmf HLDA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si6139610eds.248.2020.08.24.07.08.03; Mon, 24 Aug 2020 07:08:27 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727103AbgHXOGm (ORCPT + 99 others); Mon, 24 Aug 2020 10:06:42 -0400 Received: from mga07.intel.com ([134.134.136.100]:37576 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgHXOGk (ORCPT ); Mon, 24 Aug 2020 10:06:40 -0400 IronPort-SDR: a76nrZMX8q/VMZ5InxF4Xb7ZcyNtsDVbaKdBcZcJJD5mUcj3LPex07kzO280VJjTRmsvt9JLgT rvV9ocQPAblQ== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="220172282" X-IronPort-AV: E=Sophos;i="5.76,348,1592895600"; d="scan'208";a="220172282" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2020 07:06:39 -0700 IronPort-SDR: UBR208y2ztdF68uc9x4G9cEXpxmIXaqhRHB9iWgBhRLQTwUz19Vli6EmcDgV967+6uowTFo/es Ydleu/4Usebg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,348,1592895600"; d="scan'208";a="402362192" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 24 Aug 2020 07:06:36 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 24 Aug 2020 17:06:35 +0300 Date: Mon, 24 Aug 2020 17:06:35 +0300 From: Mika Westerberg To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , "Krogerus, Heikki" , "Kenneth R. Crudup" Subject: Re: [PATCH] ACPI: OSL: Prevent acpi_release_memory() from returning too early Message-ID: <20200824140635.GN1375436@lahna.fi.intel.com> References: <6142241.0H6QnnlUA7@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6142241.0H6QnnlUA7@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 21, 2020 at 07:42:55PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > After commit 1757659d022b ("ACPI: OSL: Implement deferred unmapping > of ACPI memory") in some cases acpi_release_memory() may return > before the target memory mappings actually go away, because they > are released asynchronously now. > > Prevent it from returning prematurely by making it wait for the next > RCU grace period to elapse, for all of the RCU callbacks to complete > and for all of the scheduled work items to be flushed before > returning. > > Fixes: 1757659d022b ("ACPI: OSL: Implement deferred unmapping of ACPI memory") > Reported-by: Kenneth R. Crudup > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg