Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp46043pxf; Wed, 10 Mar 2021 20:14:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoY4u7wW9ryi91Pj/9ynOAaNWmuh+oimLuwsXOYPN76fdCk1+R8z8pkPrAPPLCQfTPJD0Q X-Received: by 2002:a17:906:5689:: with SMTP id am9mr1095599ejc.298.1615436093710; Wed, 10 Mar 2021 20:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615436093; cv=none; d=google.com; s=arc-20160816; b=sd6LKqZBVKj0MBbaaZzPhxxTtyyq2isT2mv5HCj2FNVel0Jeg6r9NFWk3Gi3JgMLey yqnhs3mVK8I6l3ed5Y9cyoVG7hSdSTL5THGreIAp+jGkKnTPrbHW2In7N2Jn0lrKYnqF XoM8JprmKaQ07DIhpdsho7O4CLxn5T7YbslNmBmQEkkUhBfl4bEMvWYWHX5imi4dQwU6 zU+XTlSo8Qx9zrl4pZQH4OKdL7UVfkjaNU3vOjyxYGudv5+Zxaxqrwipkj/5Z3Bzl5d/ KOgvMKoF/KzaxtykuuXxKDCUrlJElzUSREyxNvwLAV0zc/eGN5eUhLOYLIRDJiSmIZpn J8Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jdAQbWiah1wIbz7ASMBtwGPTJV/VRpBrzA40HdI8Fpc=; b=DnsbHyKmTtEsi+oeUgOC0ve7smMCiUNUC+/P7V2HImH3EEJvTc3A7EkzOwYyn8nmhk 135V7lnU5EnmrT1o0ocAkJBdkR2CXpEklKm4w0wSJLn1oqrB409/CMOCV9bQUig9njmw alJEhEZCEE3ba4KKlW7wMPPyLZteDL19p0atrvjoaOVmADUMndEGuJCNlHqfP5LlbiHO l134brxaAORXMP61llMMaW1zzBtr2QyXbikkZpI/uAf12uo7aMTLaqmBOLG1Ou419ghX FIhpk1uIDHR1nKxXXIbZKz9FiF1TigoIFVOb5XvWF7uZlzeH9WrMkoiXUzl/AcBju/yy D5tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iCnArzLF; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si1115457edn.206.2021.03.10.20.14.31; Wed, 10 Mar 2021 20:14:53 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=iCnArzLF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231236AbhCKEKI (ORCPT + 99 others); Wed, 10 Mar 2021 23:10:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21390 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231219AbhCKEJ7 (ORCPT ); Wed, 10 Mar 2021 23:09:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615435798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jdAQbWiah1wIbz7ASMBtwGPTJV/VRpBrzA40HdI8Fpc=; b=iCnArzLF/Q8lMDv0vtOWUCfbeuBkiEhUqlb+Yp1ODIehH/DUu3j1z3l/MYVav7SRpEw+lG 5rqClk1ZWyYIfcqDYfFi9hxYafeEd1PoIPladKRVW5AGTnUxG6jBS/T8nPHNvo9k0xp9VK bBA31RfSzcOgGhghwBGmUdQ9bq0Z4BM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-176-61WH1gM4P7uItOx5uo40bQ-1; Wed, 10 Mar 2021 23:09:54 -0500 X-MC-Unique: 61WH1gM4P7uItOx5uo40bQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C12C01084D69; Thu, 11 Mar 2021 04:09:52 +0000 (UTC) Received: from localhost (ovpn-12-68.pek2.redhat.com [10.72.12.68]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 221141002388; Thu, 11 Mar 2021 04:09:51 +0000 (UTC) Date: Thu, 11 Mar 2021 12:09:49 +0800 From: Baoquan He To: Paul Menzel Cc: Eric Biederman , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Guohan Lu , Joe LeVeque , akpm@linux-foundation.org Subject: Re: [PATCH] kexec: Add kexec reboot string Message-ID: <20210311040949.GG2962@MiWiFi-R3L-srv> References: <20210304124626.13927-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210304124626.13927-1-pmenzel@molgen.mpg.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/04/21 at 01:46pm, Paul Menzel wrote: > From: Joe LeVeque > > The purpose is to notify the kernel module for fast reboot. Checked several modules which registered with reboot_notifier_list, the passed string is not cared. Just curious, could you tell how you have used or plan to use this string in your code? No objection to this even though it's trivial if no real use case. Acked-by: Baoquan He > > Upstream a patch from the SONiC network operating system [1]. > > [1]: https://github.com/Azure/sonic-linux-kernel/pull/46 > > Signed-off-by: Paul Menzel > --- > kernel/kexec_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c > index a0b6780740c8..f04d04d1b855 100644 > --- a/kernel/kexec_core.c > +++ b/kernel/kexec_core.c > @@ -1165,7 +1165,7 @@ int kernel_kexec(void) > #endif > { > kexec_in_progress = true; > - kernel_restart_prepare(NULL); > + kernel_restart_prepare("kexec reboot"); > migrate_to_reboot_cpu(); > > /* > -- > 2.30.1 > > > _______________________________________________ > kexec mailing list > kexec@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/kexec >