Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp949215imw; Wed, 13 Jul 2022 10:52:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sgrCWkpZt3VQyxYiyolnxkmtB36eoWyYpwH+y7d0re3hnmbYHMNM2NBi3CAcOXdUFf7lfj X-Received: by 2002:a05:6402:5418:b0:435:5a48:daa9 with SMTP id ev24-20020a056402541800b004355a48daa9mr6629525edb.304.1657734755100; Wed, 13 Jul 2022 10:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657734755; cv=none; d=google.com; s=arc-20160816; b=h7ay9+sknp9QJMH3ul8E5htZwA8w2wBbriiXI2muC4QF7dphMhW+OdxizBnFVKS6c8 iqKnaLWp79mjhIxVg8q5lZx+S/4+r8ZSTDiAhNbC7iFGXXo4zAIQMB7bphFjEB4EzPfK pC5NX9Mni5xh9r5SOucBrgPPRfH6NkItWs0SHhHWe59YM32FwN76B0u7dCEgt1zff3SS HoWN+8EBgHrmjdlby8uMrv+4fdeqKiZWx8sz+hcGE/GQ6Vqx3BjhI5pGusIW4mJKieuc Icps6T32IOK3QUUMgRwAY0nz4RGQAheIGHuB7msluxmWQOFkmfgutVBcByJtCjJqfypr LYUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kJ6vAmH6+1OknykBOoHVOhhObJ3feWxpdT+1nNF9Nww=; b=Fx2IfcRTxy3NISqu1moN03Zhdg1UeuGVXmRa9WJWWuPYdbJ8a0IZctvkneSTDXWypJ j4a8C4sHEntO1vQnk5cOt5MvyGOo5RXnSr6LKuBHcF/gVoJO2iALID5iK+f/Fy6rMvZE nIhSUEadYLY1abt19pRtN1OenBe2+UXoNP2UZnRTStmu2cGlLjOOoBnasCXf+0bYeZIr +Ko5qzeAZ5S7Yk2pRdtpQlp2NEjN8aiefdl+Yy95NG45BpeyCuf82nV9BVLjlZ7+Z7bA ryEXrB9ho32sXakEHxFdIv6Qx2tvWuP1qDtxcEUYaPxvs4UcNhnJhZ34fHdjP+XVnUD4 PITw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=uWVyM7OV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a056402070900b0043ac67a2fe7si935302edx.456.2022.07.13.10.52.09; Wed, 13 Jul 2022 10:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=uWVyM7OV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236396AbiGMRjl (ORCPT + 99 others); Wed, 13 Jul 2022 13:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231617AbiGMRjj (ORCPT ); Wed, 13 Jul 2022 13:39:39 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E89B21E2A; Wed, 13 Jul 2022 10:39:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 31FD9CE2349; Wed, 13 Jul 2022 17:39:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9F8DC34114; Wed, 13 Jul 2022 17:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1657733975; bh=hY34Ty6LLrpmsHEDeDeWG++UYJntFK70v8fR9W52Hm8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uWVyM7OVw4ZwRHp7DHN5Pc2YfWEfQ2/e794Jk2qvJyKZ74r6b0udb8VBtpPiCuPK6 EYJeQxuAMIrng8IXnhOdN2MkENapqZJr1oAVu6nxQ8lYWetlteOhG2MVfgb3fvJXXz ckUbsR5I1Pv8K4OdA78tgWO3UCRLbXGYNdYC/DJU= Date: Wed, 13 Jul 2022 10:39:33 -0700 From: Andrew Morton To: Valentin Schneider Cc: Baoquan He , kexec@lists.infradead.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Biederman , Arnd Bergmann , Petr Mladek , Miaohe Lin , Thomas Gleixner , Sebastian Andrzej Siewior , Juri Lelli , "Luis Claudio R. Goncalves" Subject: Re: [PATCH v4 0/2] kexec, panic: Making crash_kexec() NMI safe Message-Id: <20220713103933.e7510daa1c1f6ccde32f4d42@linux-foundation.org> In-Reply-To: References: <20220630223258.4144112-1-vschneid@redhat.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 Jul 2022 12:13:03 +0100 Valentin Schneider wrote: > On 12/07/22 10:47, Baoquan He wrote: > > Hi, > > > > On 06/30/22 at 11:32pm, Valentin Schneider wrote: > >> Hi folks, > >> > >> Here's ~v3~ v4 where we now completely get rid of kexec_mutex. > >> > >> o Patch 1 makes sure all kexec_mutex acquisitions are trylocks. This prevents > >> having to add any while(atomic_cmpxchg()) loops which I'd really hate to see > >> here. If that can't be done then I think we're better off with the combined > >> mutex+atomic var approach. > >> o Patch 2 does the mutex -> atomic var switch. > > > > This series looks good, has it been taken into any tree? > > > > I don't think so, briefly poked around git and haven't seen it anywhere. I'll stash it away for consideration after -rc1.