Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1618847imm; Fri, 22 Jun 2018 22:24:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJureUGeIIpFgxwzms6QDQqJZ1KLFwd8l4Bg24Rpg0S8dGyZlbyiE7p2pbHJaep57rShPrq X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr4297569pln.11.1529731477828; Fri, 22 Jun 2018 22:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529731477; cv=none; d=google.com; s=arc-20160816; b=TX+Q9RU1qG0GaViincetw4vdNCldBzxgiJ0VTmWJ1GN0R54v9I2I1WCTPD3bDHvNKD HJrYydTkEbNhyPE4NXcR4XOZrK52m8ae653jC3Q0w73Hjs0jxmJ95AecO3TMQU+YckmT P9HEzgpiws0HHvatoIQDlxc9F77x6KKZh7pKEdRs+k+NUBJOJ6HLLQlbIwL77esINj3K XFpIinKRU8AfTvOgPjTWlmn6uYQOvH3daj/26FkICByBiR6e/wYePKaaRbkuMZfF4r+g Hf3YIpizMGnOby6xMqapWbhpDSxSR4cnLiFfPijRbFycCCb2ErmUVx18oT6lEiBrczAQ 6SRg== 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:dkim-signature:arc-authentication-results; bh=kwjgDpwtMuMEo+KPJA4zTLwkC8zxbqbGt1CGObleKV4=; b=m97ppAxS4hb8vJ2xPURqqkE2OQ5CcKOP4pbCJkmz3I9e7TssWMCway7/geEcrNujj8 Xp7Seg2rfqFaC3U65nYzsFvFOtb1McR1hdIH/i92felItXIMLQgZm46j1LhqNilRCj73 lbnMTZA0UV4ntCEnLudKJfFmmJN9WYWj9P8uG/pzVcc08LzJicWqt1e74WG3fMtkFydf SOjPWBIAYk5IbstQayMnSWGJaehdcQhq460mJtky+IRjc/Co7kCkI/haiqq8gQSNOtfW JxSDcmIok5F29bz+xJLriuTAGejqXK3uCiOo8H7s0rWo9SDuD1ujhHAGE/ZzJnfCRkDR wk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YO7uLoSx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si7437253pgq.662.2018.06.22.22.23.42; Fri, 22 Jun 2018 22:24:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YO7uLoSx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751451AbeFWFVy (ORCPT + 99 others); Sat, 23 Jun 2018 01:21:54 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:44684 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbeFWFVx (ORCPT ); Sat, 23 Jun 2018 01:21:53 -0400 Received: by mail-pg0-f68.google.com with SMTP id b10-v6so151265pgq.11; Fri, 22 Jun 2018 22:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kwjgDpwtMuMEo+KPJA4zTLwkC8zxbqbGt1CGObleKV4=; b=YO7uLoSxGsAG0mHVtXFslMr5t00XgOkoA/VWqjzGdkva2a2/b5Gt1vmnZmNuGn55xh Wk2KAW7PB1+ay83Vffp++sJ52RifC3Ktn5kuo7y09lZ5HbcCLMsJJy0oitC7VvB3Qtd/ 4ainD4PGTI7Xw25ObiIAzdIDApI6N9o1cpgjJiHC/GYT/8CT6u7Vug8vnPMddtUup4U5 GGrPd9FBlGY7dVewaz+iTLmcI3LM+PTB3YWaMHdZG0FgeQJ2XQQIifFTEP+agpDDAHdF MCBGff6IJIGcSj4f6EoKNEthMRnGL1IAPacW3FWGZcC+3D7YHMp1ANqUA6w/Doo7N1bq dRcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kwjgDpwtMuMEo+KPJA4zTLwkC8zxbqbGt1CGObleKV4=; b=ZTMXW1fpnDmJQ1vxX10J2aD8DdCVCb8/LyooVK28iSJD1ZUogFSGwHMltWMI/ZvjNy encPBj4DrMqrJWmaq1LFA6WlnbFn4Z3f4bG7+4xZ4C4Jh0UMscfcZpm82p2mtOtLLC2B WD8cTCegYs/PX7Q6tibZiHnHp//+C0hAYJeOGGm24DOTDZgrmCq0NXWkFQQT7gVZR4+R rM1VXJLBYh0+5sBTxlbcWkkakmVT+Cqce/VuQe8Qe6QoCOwLzzJ+BUjVX21JWFcpUBAQ glFcrd3Ft/4U3kPAblNF4eNA5m7foRNRjNxBynHFGowQ50TuP5jxst+cZHSoJ/eT8xFs YiQg== X-Gm-Message-State: APt69E1dvDX+qmxykYN2FpxOBLlHE4wjds66SCSfbT3N2JykYpW9aGRE +v7lYOKP11E7Do/8t8wuUZU= X-Received: by 2002:a65:5a07:: with SMTP id y7-v6mr3623768pgs.177.1529731312496; Fri, 22 Jun 2018 22:21:52 -0700 (PDT) Received: from localhost ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id k13-v6sm17033904pfg.130.2018.06.22.22.21.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Jun 2018 22:21:51 -0700 (PDT) Date: Sat, 23 Jun 2018 14:21:49 +0900 From: Sergey Senozhatsky To: Alan Cox Cc: Linus Torvalds , Steven Rostedt , Petr Mladek , Sergey Senozhatsky , Greg Kroah-Hartman , Jiri Slaby , Peter Zijlstra , Andrew Morton , Dmitry Vyukov , Linux Kernel Mailing List , linux-serial , SergeySenozhatsky Subject: Re: [RFC][PATCH 0/6] Use printk_safe context for TTY and UART port locks Message-ID: <20180623052149.GA402@tigerII.localdomain> References: <20180615093919.559-1-sergey.senozhatsky@gmail.com> <20180618143818.50b2f2f9@alans-desktop> <20180619005308.GA405@jagdpanzerIV> <20180619083021.4avsgvcqjrpkat6s@pathway.suse.cz> <20180619223447.4369748b@vmware.local.home> <20180622172100.2293b5e5@alans-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180622172100.2293b5e5@alans-desktop> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (06/22/18 17:21), Alan Cox wrote: > On Wed, 20 Jun 2018 11:44:13 +0900 > Linus Torvalds wrote: > > > On Wed, Jun 20, 2018 at 11:34 AM Steven Rostedt wrote: > > > > > > Perhaps we should do an audit of the console drivers and remove all > > > printk, pr_* , WARN*, BUG* from them. > > > > Only the actual _printing_ parts. > > No because they are normally rather useful because that port isn't the > console. If you trylock trylock is boring, me wants printk_safe_mask everywhere :) > Really that's all that you need - log the message to whichever console > targets you can currently safely do so. If it's none well there was > always the proposed morse code keyboard light driver 8) Hm, just discard messages? With printk_safe_mask we keep everything in a lockless per-CPU buffer, which we flush [per-CPU buffer -> printk logbuf] from irq_work, so we can print it later. -ss