Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2772621rdg; Mon, 16 Oct 2023 14:39:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyaQwjSrzvoZ4z+UW2eSZsdtwpvE6Lzuk5ZwcAjqOrb10m7Ej17R/F9Fl6I8kvCtO0a44E X-Received: by 2002:a05:6a20:be98:b0:163:f945:42da with SMTP id gf24-20020a056a20be9800b00163f94542damr193533pzb.48.1697492399569; Mon, 16 Oct 2023 14:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697492399; cv=none; d=google.com; s=arc-20160816; b=fvaZMWi6yoXDoK/IQGGNVu/JLnHUQ0YJw3MXPjhOLWuQgns/bn7KJdADQ0b7hki6UM 6yRnwDRrUrg4C0yi/VHewrXXPEo13Cm5AVPTvKqzvrE29qrrNF1YjQCz7e/vGWWPIsfl iq8K3WxrSAU0SWYunaXYBLQmMRdguweGOJ6V7LNJvJZ90fpszbtHO6oqVVI/NoQcykOI FKhdQI41X3PCVnayJNwQurbwZPFe59MNl9oa4gAyaiFDhKscV28d7+lqNsb3uh1hwo5D cLeDLFF1vig9qEKOgnUWIINV3L7v+/zqSZQWGN30IDI7wKRxZhqQ6logYajDmYhNVaCP iPew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BuOLViMR2By0n/joJPuvEB5XQHuDz04EIYJYG8xQG8E=; fh=QLKnr0nmX8RFhPfzIDe1pP1cjMJKKb1TjxXtmIGNhok=; b=wpTbTzWqJt1Sx75gtfDWdkV4S1fmF4/lkApDIFkYr9N9L3Mno9Vg6HQ/G+tfqik9pz btY04DArr5P/dLJ1K1xYBmqaJMEL+duzUYNDzhKhK2OSHVQ9nJ5SmBR2rPDX7j3JUgT6 lUHQnx4SnQVMlZUUj+V6hxJkHKRGbVthgFNx/2zWC64cBX/awu6VC6oGh2ZUPrTGlmeu uUfbAdA+v7+Eb0Zm+aUhJYFREe7mOUpmzDW7sFNFWXGv0sDb/wtUmYkpdDIIVTgpjuIO XXCQdrq0My7FsMRdJoxUawYnfmE44QQzCL380yIsp3IWhLY3TGw79qv/gBsGsvg8KVe1 rlMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dwuFOObf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y64-20020a636443000000b005b32ca3f714si198751pgb.718.2023.10.16.14.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 14:39:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dwuFOObf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 97C3F8020A3C; Mon, 16 Oct 2023 14:39:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233510AbjJPVju (ORCPT + 99 others); Mon, 16 Oct 2023 17:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbjJPVjs (ORCPT ); Mon, 16 Oct 2023 17:39:48 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D29BEA1; Mon, 16 Oct 2023 14:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697492387; x=1729028387; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ULxm3ALCvLWzeStCPJp9aHPIk/h52vXh0JSPle2l5F8=; b=dwuFOObfkS5fjqi4eRkphnCRq2K8O++02SOUN+JYvK9rTA+NG3NxHrSd DiEjChJY50ZJtQ+HAf11yEY3VVnVVlFa9dfGW6Il4o6xrosUIeO6zZv8Z 14WCHf8zow65TBpxqEDlIo+3EIh8PFSH+xJhGATsVbcmxqPMmBQGufYMx QtUbAs63TIH0bTzC/wv66Voe99WKO7LcoBHNo35XdOR5s/+wT1yRF3z29 FLAvC+vkv34SrjgCFWmAXfNkvBM3h8QhMlZXZ5YNbTHTV8xYA+V2nf/H/ KBLpnrpcBQMcMiru9kaLOiqX6gop1Mr0TailuhXMs3YijO0ZEvIoBNCVh g==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="382863479" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="382863479" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 14:39:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="749425295" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="749425295" Received: from ranaelna-mobl.amr.corp.intel.com (HELO box.shutemov.name) ([10.251.208.247]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 14:39:35 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id DE88C10A1F3; Tue, 17 Oct 2023 00:39:32 +0300 (+03) Date: Tue, 17 Oct 2023 00:39:32 +0300 From: "Kirill A. Shutemov" To: Matthew Wilcox Cc: Borislav Petkov , Andy Lutomirski , Dave Hansen , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@kernel.org, Nikolay Borisov Subject: Re: [PATCHv2] efi/unaccepted: Fix soft lockups caused by parallel memory acceptance Message-ID: <20231016213932.6cscnn6tsnzsnvmf@box.shutemov.name> References: <20231016163122.12855-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 14:39:57 -0700 (PDT) On Mon, Oct 16, 2023 at 06:55:41PM +0100, Matthew Wilcox wrote: > On Mon, Oct 16, 2023 at 07:31:22PM +0300, Kirill A. Shutemov wrote: > > v2: > > - Fix deadlock (Vlastimil); > > - Fix comments (Vlastimil); > > - s/cond_resched()/cpu_relax()/ -- cond_resched() cannot be called > > from atomic context; > > Isn't there an implicit cpu_relax() while we're spinning? Does this > really accomplish anything? You are right. It is useless. I will drop it in v3. -- Kiryl Shutsemau / Kirill A. Shutemov