Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp960734pxk; Fri, 25 Sep 2020 02:29:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP5Aet0qgC39XiQADk3+wSbokWiMg+3doRSDJ2FmXroSRGQfdvloi+PZQTGEcdYU1vCsAB X-Received: by 2002:a50:ce09:: with SMTP id y9mr269168edi.91.1601026143352; Fri, 25 Sep 2020 02:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601026143; cv=none; d=google.com; s=arc-20160816; b=H14PMc1ePLoe3UGBdEPmXxGNa8xNnncMEd8fZGTE98g3EvdKfz2v1A3i94z0y9xzuM DfFnN1SLeLvtS6xkhi2oYo0QQJWCX3sa1nUGizbnJ8vLahz05b6slF6jus/X3IDXXxRa 7ZlLJFW74GFhyZr0X9XuI2U/9XkVY9DyEGjJ8+hjJV4FpfgZHh2bm23skrk/Y30ApmPY 3tsL3q39kTN+WU52+NrqFtMjG5xKn4O+7XTqlzAa55L9MU4jcdEg0GzQzFvJO51I1vGN OpgloDbUIhmKrfLd0snnC0NnJQI5lCUcMKlq0crynxjNl8/GQWcHf5LowccY+8jwTWJb rosQ== 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=jP4pzqkegOiY3WlGjR8FVpx3LEWOMGABKRarqf5VRlU=; b=CH6m3DB6DuLYmYoOggH7oyKXU1mUP9x2inuuN3f/NLs8LlZxlvG7rm0W7RjbWuFfxI 9FvYFwAVB3jg1AjL4/vS9GxGuchbyjGYyGB/UO22XnTW8gWZeILXlFhneENU8uPaic5j EGVG3OGBkD8+ReB5cKw4ax+Cbi9W/8i2ypUUebfHe/HsJzkS+P5PBOFZZpHyPxlcZ6Xr HqqgvqNb8vuWG8X0VeB7lufZlLzgi2cVwVnFFU2UB234MVdiH3rb7CEmIBzbMr7NB+mQ URtmTRJTllSJkgyDqOFRr9/lNRjNS8URE2WJ5guNfi+O9GCxI51XJ14xMvBlbM9n7xH1 QvdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d3KU8LhZ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si1417880ejx.47.2020.09.25.02.28.39; Fri, 25 Sep 2020 02:29:03 -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=@kernel.org header.s=default header.b=d3KU8LhZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbgIYJ1k (ORCPT + 99 others); Fri, 25 Sep 2020 05:27:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:56206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbgIYJ1k (ORCPT ); Fri, 25 Sep 2020 05:27:40 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 37C0F20738; Fri, 25 Sep 2020 09:27:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601026059; bh=uKVo2+xjnMrqEkSD18awjmWEkwFPN07/VkgovTxNUx4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d3KU8LhZrK1BhkLPLTgRXfndVrB2RE7Cq6t4TquevajpNIf8iImULIwz2OGmvhydW P7y0Qsay7e42+bMrWjPOM0a8AfdIssaLh9spTFjvCviqZV7DIBLWC/hZuppQ5ds1ag vC77lvGkPrZ9NIEnHi9YNWSUmVcHIwYapI5jIuK4= Date: Fri, 25 Sep 2020 11:27:54 +0200 From: Greg KH To: Thomas Gleixner Cc: Prasad Sodagudi , rostedt@goodmis.org, pmladek@suse.com, sergey.senozhatsky@gmail.com, linux-kernel@vger.kernel.org, tkjos@google.com, Mohammed Khajapasha Subject: Re: [PATCH 2/2] printk: Make the console flush configurable in hotplug path Message-ID: <20200925092754.GA2508526@kroah.com> References: <1600906112-126722-1-git-send-email-psodagud@codeaurora.org> <1600906112-126722-2-git-send-email-psodagud@codeaurora.org> <20200924063352.GB592892@kroah.com> <87wo0j6nos.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wo0j6nos.fsf@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 08:21:07PM +0200, Thomas Gleixner wrote: > On Thu, Sep 24 2020 at 08:33, Greg KH wrote: > > On Wed, Sep 23, 2020 at 05:08:32PM -0700, Prasad Sodagudi wrote: > >> +config CONSOLE_FLUSH_ON_HOTPLUG > >> + bool "Enable console flush configurable in hot plug code path" > >> + depends on HOTPLUG_CPU > >> + def_bool n > > > > n is the default, no need to list it. > > > >> + help > >> + In cpu hot plug path console lock acquire and release causes the > >> + console to flush. If console lock is not free hot plug latency > >> + increases. So make console flush configurable in hot plug path > >> + and default disabled to help in cpu hot plug latencies. > > > > Why would you not want this option? > > > > Why isn't this just a bugfix? > > Because it's the normal behaviour of console lock and there are > gazillion other ways to delay stuff in the hotplug path. > > CPU hotplug is not meant to be a high speed operation and if people > think they need it to be fast then its pretty much guaranteed that they > want it for the completely wrong reasons. Odds are, it's the big/little systems that are trying to use cpu hotplug for this type of thing :( > This #ifdef tinkering is just digusting especially as it just tackles an > obvious way how to delay timer migration, but does not address the > underlying root cause. Agreed, thanks for putting it better than I did. greg k-h