Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3706750pxb; Mon, 1 Feb 2021 02:30:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyb4k1Or6hBzFmDXexr0VEv68+ueRGpM6XhF4SJNSRUwQY1bqAgYj2b5fZ4CehtmxrN2pZm X-Received: by 2002:a17:906:8507:: with SMTP id i7mr474595ejx.175.1612175446696; Mon, 01 Feb 2021 02:30:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612175446; cv=none; d=google.com; s=arc-20160816; b=Vh82ASs9vgK/qjIswjrQeGHXwh060uREZkFb72tx69xBD7AIaR3/Wh2SkXYKhdpwPF NaRoNlPCT5nMV+1ZGxasUebkX1R1CpEUZ0GJ/QKivz13XsnB/bDxgqrUevuWQxL+kGBR 0EDkDjNySE0XAYfH5CH9p2PTC7jCOCCF5cs02G70KqTnkBmaIaeEuF/YL+x2KY88MwYj GCx7U+jj/ZmWH6BiAu5CTdgwjTVJVvKljiE+S28E9+sOUTeDj7m0Gyrzo3ess3YaqA4F 6zR5fRsQhZfjW89ImrXBZMt0ZfXL9TXPzwmWtmIWNyzGfXI5GPuMm13lNaJ34KOTyn1W ZBlA== 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=HcYuIPJxvFYv5QNbcW9iQ1RF+MJphc58zNc70PwN3M8=; b=V0aFGTViEUQ9kazF+t4jkAYFkaF/66e0ITcxtPp8ELdb7PovuhVXUY2UshtrlijtAY +TOLIGl1XFALXg/2mOTRlEDVYmoW9CRdr8CNBb/JbSYJLkG4Y+BsFoJV01+ePNXlnOKc kHcdR2/IxOnlelqhqv9YgaLbDz2s6dwHHeaPnJav83AklNelOYtfuEcC1nJNPgHQmWRj Z4xjZZVgIOjwFwsGe8qbc0Zn94GKSiUMyuJUHsdCLkI8OxYqB8mhPcu/HbfGw5l0Fqzo 82YZBy3zjQwr0aXC2ZEmWZt/WnZlY97VpDXBW+B2IeaQ6ks1JiMYNXoex/fJr3wSysWV T8+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=jroby34N; 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 i18si10401078edx.293.2021.02.01.02.30.22; Mon, 01 Feb 2021 02:30:46 -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=jroby34N; 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 S232573AbhBAK12 (ORCPT + 99 others); Mon, 1 Feb 2021 05:27:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:35066 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232290AbhBAK12 (ORCPT ); Mon, 1 Feb 2021 05:27:28 -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=1612175201; 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=HcYuIPJxvFYv5QNbcW9iQ1RF+MJphc58zNc70PwN3M8=; b=jroby34NQvFAIo/UBsJqgs/M+jC53xDSbLP2KQhmTBxVauvM9SAQqgZg1LYw6ZKT6YN7qJ hHalDufw6nquiQykcKmNe5uA8la3WK+A5CDO8H41kH3rgWJ3d8aMccUK/bGLxi+mZfh67S GF84pS2gh3z6mIZ+Q145532/rW5pWlw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 955B6AFDB; Mon, 1 Feb 2021 10:26:41 +0000 (UTC) Date: Mon, 1 Feb 2021 11:26:41 +0100 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk-rework 09/12] um: synchronize kmsg_dumper Message-ID: References: <20210126211551.26536-1-john.ogness@linutronix.de> <20210126211551.26536-10-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126211551.26536-10-john.ogness@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2021-01-26 22:21:48, John Ogness wrote: > In preparation for removing printk's @logbuf_lock, dumpers that have > assumed to be protected against parallel calls must provide their own > synchronization. Add a locally static spinlock to synchronize the > kmsg_dump call and temporary buffer usage. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr