Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3643374yba; Tue, 7 May 2019 04:52:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiyBNLX5dl7e8c9ejGUQwmnImC1kIm3sNBfNJ8MJNDOpx6f9sjP3+cu/0mwhIDVsjajBnB X-Received: by 2002:a63:295:: with SMTP id 143mr39154510pgc.279.1557229975790; Tue, 07 May 2019 04:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557229975; cv=none; d=google.com; s=arc-20160816; b=iM/fGMMywInYJNdWmYKKQAsyh5mxeQH+ce9bnbe3+dHFaIXA59+DBdAWOz4NUlCbfw TbBkoDosG9QqVongjh/vQeTcF0mU0am14runhEHiuswupWKnFq+gCS6QONnEp4ZtHmYN 9/YwvRxY4faWTzKxYmgE5BzHfZaeovtt09Q1rl8cLwie4HUeX7VwY9f6tXFXCB+4SCKf UcG37afD/mWOwiqsqjyEZSN+0ne/Af9/3wPsFWHvurN6UkEkfR5EB5VjxVDfgW5tjgWU MftZ2K06RKQm1eYY2xisQJ8ivM+DDoSx0cZbD5ouK/9+PmGUXwfTXqvHrZOZTqPgpCdL fsfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qVTRsebsFR83pbOa6Kn0w8/mpmSOy+1nOYcnoEoAL4k=; b=sJx+jgp5XT4lzroneGA7LunCu38nyrEOt2p0wzjUlDSSSYitcPJiTzvc5tch8twBCJ fRRbqb03ejF9Nsagn1Enbh85PdCqFhzxYv03EswU0t65NiVvDUVFkMdNQ5jxMjTVYMAn OHChwGWk4Vss7Yp12M4oxSKPbKVlEHVpHTG54K9P9SAJL5HG07AczNoR6KOCIUoBGySY zi0UPoJXpCXtPZ/hq0WmsZ4+Jn1ALo8I0gx1fpxJ+pQP9hE7YRZ2gxmBoOydUB04sqdy e8RXqd2k+oxjkOrfXEDEJpTUte2Dq5oLAqhaPQWvupi3vSNx6ffYuD+Fh5XsoG5WmOef q0lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si19096600plb.346.2019.05.07.04.52.39; Tue, 07 May 2019 04:52:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbfEGLub (ORCPT + 99 others); Tue, 7 May 2019 07:50:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:48220 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726276AbfEGLub (ORCPT ); Tue, 7 May 2019 07:50:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 53148AEC2; Tue, 7 May 2019 11:50:30 +0000 (UTC) Date: Tue, 7 May 2019 13:50:29 +0200 From: Petr Mladek To: Josh Poimboeuf Cc: Jiri Kosina , Miroslav Benes , Joe Lawrence , Kamalesh Babulal , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] livepatch: Use static buffer for debugging messages under rq lock Message-ID: <20190507115029.54qxbsd4vsouwvjo@pathway.suse.cz> References: <20190430091049.30413-1-pmladek@suse.com> <20190430091049.30413-3-pmladek@suse.com> <20190507004319.oxxncicid6pxg352@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190507004319.oxxncicid6pxg352@treble> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2019-05-06 19:43:19, Josh Poimboeuf wrote: > On Tue, Apr 30, 2019 at 11:10:49AM +0200, Petr Mladek wrote: > > klp_try_switch_task() is called under klp_mutex. The buffer for > > debugging messages might be static. > > The patch description is missing a "why" (presumably to reduce stack > usage). Exactly. I thought that it was obvious. But I am infected by printk code where line buffers are 1k and nobody wants them on the stack. 128bytes in klp_try_switch_task() context are acceptable but it is still rather big buffer. OK, what about the following commit message? "klp_try_switch_task() is called under klp_mutex. The buffer for debugging messages might be static to reduce stack usage." Best Regards, Petr