Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3205247pxu; Tue, 8 Dec 2020 06:18:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwz/KZZDszq8wrULWJhg9dWahr1L50oCt7kOnX/FeM8fT2JEuRaPhTFPyP+7+OF6A7g3bWv X-Received: by 2002:a17:906:31d2:: with SMTP id f18mr23245011ejf.407.1607437114185; Tue, 08 Dec 2020 06:18:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607437114; cv=none; d=google.com; s=arc-20160816; b=DEHkMR17jcEhB4TpMj3mJSXRgzXX+m0HkSwUMxrnDMgHuzNo/ikQo79YQMYr77D1bu XsuI4uirN3zaqM32djzkJnPdOgazXA+3D26yvkF22Eyj5i9NX8cvIxAWrqiZTYW4hK5t 3ri4P6IwIi2E26rjXtJCB0X/uh1yS4L0ZfL7IOVvlgaoIt656FtIqgzwxdBL243N1TS6 mRd4yzcI/wJPKS8cbZVHB4AwALBkg0NfnG3CBG1JzV7znDwcsjLxw7OwB9l6+oaEMuM2 Xa+LONZuC5lSLICMLpaaLM7MW/1XkRFGc9PP1hSOAw6++bpqsSh/37lLzannSLW2HE8g 2Hvg== 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=oqaRiuwUNHlPLFbMAEPQzUSrZGbrPkZVKcJhLr1BWJw=; b=zXfae1LxPahAlMJTC6rT0dRZGNpaWIcQMf4OVBQTtECdsAEjYx3iC5ZBZdUFyXvTgN HFoJydkl9IZs8jdW2KF4czlD8zJW171NY8iE8m3SHUgEAUWtE7EUDdHswCqWqq10vENo zsdR1SPHjDhu/asW71GHQ86s86HDy44WF2bcSpog4f2MHDwFTBD537wY9rb6iF1upFip d/kHIUXEqaX1s8cci3bswSp6SEg77GIemmb+Nsw2IpCqoUlkkhl7U+Ga+la4+V35oain EiuaSHc0SeI/H87+bE/u0QFHDwBQnZ4N+NUUyoIhpdh6hnSWD+rw3Bny2hkUfpZtut5N /NcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="pu/M/IqG"; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si9810124edl.364.2020.12.08.06.18.10; Tue, 08 Dec 2020 06:18:34 -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=@suse.com header.s=susede1 header.b="pu/M/IqG"; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729470AbgLHOOK (ORCPT + 99 others); Tue, 8 Dec 2020 09:14:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:56078 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729428AbgLHOOK (ORCPT ); Tue, 8 Dec 2020 09:14:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1607436804; h=from:from:reply-to: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=oqaRiuwUNHlPLFbMAEPQzUSrZGbrPkZVKcJhLr1BWJw=; b=pu/M/IqGgdKAEgr/d+OTrLJi4i1S5XG12M/Pijzgw2RcftxMWHGXjxhX9xFgimfL7nqCTR zgfPS7m2HFv/F/a+aU8ZXdsDNiZgTTo87xkGqbTPrxwOaMi/mxRNWJu4z527UEcTuCV2DH yFKjUeTdLi2QsnzqPFGmMmfeb1Oi1UY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 424BBAC9A; Tue, 8 Dec 2020 14:13:24 +0000 (UTC) Date: Tue, 8 Dec 2020 15:13:23 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH next v3 0/3] printk: remove logbuf_lock protection of ringbuffer Message-ID: References: <20201207222020.2923-1-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207222020.2923-1-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2020-12-07 23:26:17, John Ogness wrote: > Hello, > > Here is a v3 of the series to remove logbuf_lock. v2 is > here[0]. Rather than completely removing logbuf_lock, this > version only removes logbuf_lock usage protecting the > ringbuffer. I have tried to keep the 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 temporary static sprint buffer with > sprint'ing directly to the reserved ringbuffer data block. Yes, it might allow to see eventual races in the ring buffer code. It is great that we do the switch in many "small" steps. > The other changes from v2 (recursion limiting, introduction > of syslog_lock, using clear_seq as seqcount_latch, and full > removal of logbuf_lock) will be included in a later series, > which may or may not make the 5.11 merge window. I am slightly nervous when such changes could not spend longer time in linux-next. On the other hand, I do not want to block it too much. The races will hopefully be hard to hit if there are any. And it is good that there are no other big changes waiting for 5.11. Let's see how the patches look like in the end... Best Regards, Petr