Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3595572pxu; Tue, 8 Dec 2020 16:48:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJym0chqH+eY9OIyb84PQih/u5LwdAcVqz3wlWmwC9obB+R0BJbEpBOt1jlv7JWJBF3TLea3 X-Received: by 2002:a50:fd18:: with SMTP id i24mr552493eds.146.1607474911724; Tue, 08 Dec 2020 16:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607474911; cv=none; d=google.com; s=arc-20160816; b=dsdEnF9zL2hDZYmxYnLiXxzzEY2lvwJdIcKk/5OUzX5R3hpJ440hZn8H7hiYkknASZ h1Q0St/Yz1k1Mt4TnQ6Ew0h5Xk3ibsbUIzYg9Omoo7y1jzKvPT7JFBCgkFyWgScKe3wK GVNaStJK4G1XSQuKWTj7Je1zo8x+nnBw6gl7XtWXGeG8gu0Spp2ZweQI3XvEFksVmKEU YWZNVldhv+mNWVtRJx/T6y5nsuZsQg6QvyjrXtHuyFao53rc4jUSR6sWQnY1l2FYlNTV Ld25NumO02r1MC+aAwdxHrLNb7A2bRGkz197amonYRbZ35o78K24gkKpBtbv4HtP8SH9 3YeQ== 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 :message-id:date:subject:cc:to:dkim-signature:dkim-signature:from; bh=ae9uzxlxHpW5A/C82t4ibLw8BtYB7x7/rGLRuHPYU60=; b=khJn4pIP3Wz6psOaeLZjMMW0e2GNhHlCACde58l6jgKPyA0BTYvfDqMsgqlOKzYG41 ioAUO3vwgwJGpsZC9hqRCJ8J+iab/y9lKLRTfeeTBtQag0xfmyfkbh77ZVKQWbruSpH8 wsy08kr47nrwRUPMwkASCb4/Xk/2l5x1Njno1rHZX1JEypjs5iLRi8C/4MZpOjCVQrv1 do2ItjJZqbz5zBecOAjcpyR9XuUowqmm/z0Jh/+hYtvnSzkm+25gDnP1N6x0BMcL8Iqa VP9+Bu592oIHynlY3108370ufBDGajvoeW/ahtekv4yn4IxJILkna3L80znQhDrZfbge l2oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oP1C51DB; dkim=neutral (no key) header.i=@linutronix.de header.b=VsRjxxGE; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si60955ejr.754.2020.12.08.16.48.08; Tue, 08 Dec 2020 16:48:31 -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=@linutronix.de header.s=2020 header.b=oP1C51DB; dkim=neutral (no key) header.i=@linutronix.de header.b=VsRjxxGE; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729985AbgLIApg (ORCPT + 99 others); Tue, 8 Dec 2020 19:45:36 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:42372 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgLIApg (ORCPT ); Tue, 8 Dec 2020 19:45:36 -0500 From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607474693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ae9uzxlxHpW5A/C82t4ibLw8BtYB7x7/rGLRuHPYU60=; b=oP1C51DBdC+gY7X9SubEpdM7I+lgKs52bQDUaK8JXi+O6DqeVn4dpXG5ZiWOcH/Eforo28 RcqhBmE6FKtnSUFSGuQNyj8OjPPxwBYS9RtgnOIseqiAL+qjN1KGq4ihAB85b9myyy0s2i bZnU/Ti0ot6jNAhsxxEiqdX9CjL9bb2LN1XcOULGvQHMMLYcE7E0FF4WPn0n1wqSF1rI2f Ewy83uGV36XVCKHJZQI3FUTcFMVh+uQy2DCtSIzHbm6GfaX1HIqUVh9oLSDDaXYksHuN1i uGwgGTJ9aGbj8wSxyMVq/Z3a5WEj8YiZEFyEu38nSwJLQchfyFGthX37eMviiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607474693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ae9uzxlxHpW5A/C82t4ibLw8BtYB7x7/rGLRuHPYU60=; b=VsRjxxGEnhZN9QKRcMsKkdQP2D8sjJuQRwDGRM9n5H2dr6K0a+8QO3WNgRayG5vPNHPm0P NWBcFNb1PNZNYOAQ== To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: [PATCH next v4 0/2] printk: remove logbuf_lock writer-protection of ringbuffer Date: Wed, 9 Dec 2020 01:50:51 +0106 Message-Id: <20201209004453.17720-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Here is a v4 of the series to partially remove logbuf_lock. v3 is here[0]. This series removes logbuf_lock usage of most ringbuffer writers. The remaining logbuf_lock users are using the lock to synchronize other variables. These other users will be addressed in a later series. I have tried to keep these changes minimal so that we can feel comfortable for the upcoming 5.11 merge window. Although small, this series is significant because it allows printk callers direct lockless access to the ringbuffer and it replaces the use of a static sprint buffer with sprint'ing directly to the reserved ringbuffer data block. This series is based on next-20201208. John Ogness [0] https://lkml.kernel.org/r/20201207222020.2923-1-john.ogness@linutronix.de John Ogness (2): printk: inline log_output(),log_store() in vprintk_store() printk: remove logbuf_lock writer-protection of ringbuffer kernel/printk/printk.c | 247 ++++++++++++++++++++++++----------------- 1 file changed, 147 insertions(+), 100 deletions(-) -- 2.20.1