Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2857162imc; Wed, 13 Mar 2019 03:07:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPRKvjNB0pb+Tt29oh8l69eawmwEvghTeYJ4tCuG29sqtCZkWMaHsMohVehqv7vVb1N/kx X-Received: by 2002:a17:902:20e5:: with SMTP id v34mr44949036plg.319.1552471666114; Wed, 13 Mar 2019 03:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552471666; cv=none; d=google.com; s=arc-20160816; b=Wgw9AT0OJymmBm1ZR3PLq+hqUmNEcygmZG2JEjNn/0j4S8Z+aexwcQwj3b0YgZBVes 5ns0SHspP1GgqVdWf8a9nSk4IGAJn6wAhAmWvblvWXfogHX+ALpto8fqn2oCduEorWjA B3ZDWCNAwuLrWd7BkJqlyV5ZD3LnUBdCaysYyDJg0ZsUOirTzvrvrbcMIvahwc25U15K qFPaCi5l7b5YWFni8HRiJB0Y+mWlTaVcnTn3VYsIJ03UMPbzFH1E5ASkvnJERqCp5bXi 4s4772FNQJTZHEUs1xMCd1QucgEE80pav0WhWmS5j3lMSraWsOZCUkblgFWiYA91noQa kBkg== 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; bh=Yg0BUzKVaEL/UleSuUnfvZe6QaEQT7nVAeKS6LgLVPg=; b=bf0yevbZsGpwCCDY1HnAoytQWMrJB701Du4iPjHpq7V5N4iPxg9QDKVu6q3oq2uGcA QH2UyxhmvyMd/99FAkXtSu8w/rbIoZJSNjmf8QgsUIVBD1v0gnj9YovDIbPKKalLDrdj PZOyh/48WQ6X4OEoJsCDJpFN2ZBocnbqX3dAw27oqeWEC/GfKc6/meQU6E4/yAe3zSfb Fbi/AjnzHub6FOabq1f9PsrE7Vmu/TydLx0pWjQnrsy1xDrb34RsR2KOJJYAGokk68gv 68pOEcZQT7kSZb5lb/QFjc5z8R8eA1E5wwqR5MJN1vp7Mcv2qtV0dBA1v0AKfc02FfXA GB4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jgqzt15e; 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 o5si10160540pfi.22.2019.03.13.03.07.30; Wed, 13 Mar 2019 03:07:46 -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=jgqzt15e; 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 S1726218AbfCMKG6 (ORCPT + 99 others); Wed, 13 Mar 2019 06:06:58 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35995 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbfCMKG6 (ORCPT ); Wed, 13 Mar 2019 06:06:58 -0400 Received: by mail-pg1-f193.google.com with SMTP id r124so1177120pgr.3; Wed, 13 Mar 2019 03:06:57 -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=Yg0BUzKVaEL/UleSuUnfvZe6QaEQT7nVAeKS6LgLVPg=; b=jgqzt15eX5QcwMnYzcImbjZbuY7lkDNHvi18ZKKb2BALqCFSJcvj2rkJ5WYzEV/Itu MFsxLIv58vpocsaHvnMD5WPe86uagLcHDWeS3GQDd8Jhi1ciuLaEQa1N+2nwpw+344UC v63knvVvjNYCcLUwhN1zDlhtdjNhjL8ki36M0aXn4/biL1yB4vWK/RKLPc8p6p1CQN0r tb+BqcecgjDBYZim3xzbqw6gytBAjQ5JSSw/8xibU7JLt1bohfjT6gcVTqBEXM8uCTko kNHIvO5Hb4qQFq7/RWy/2xnelkwy61e/PnUPabSHENTb6ea2bOZh9bpNbG6KRva5rf6K 4Wsw== 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=Yg0BUzKVaEL/UleSuUnfvZe6QaEQT7nVAeKS6LgLVPg=; b=XvP2ff2Q289VJcnbLdOj0V3lgI1zXrTP5bCh+5MGnc7GErehHe3rEPbhnHFFwvOhRC jvO63Bk37tlFBR96l5ISC2k4LV8NIf1KS/KG2i5f2BZLyBqE8VXqIwBgjzwu9k+NIsOj jW/wAqXpZRJcBFvHFF3AS8EEy85SGtnRbcmcuPzytSCyvzPSp6buBtmJuEhae6ZmCEAj Jcoqkfv4wr6sg6zip1xH27Rx7aNdkZy2RsLcZhtjJqHAwz2WNyp4QpAF8JHxdWtllCWl qDYn0IOuRm6LtBJwu0hnAHCn0IhSqRBbAWfYCuVYZLiNd2gdQy69DUhx5wrEyh7vqc9M V8PQ== X-Gm-Message-State: APjAAAXXfD77NGb3Ic4m7yrjZjD7+X1pv4kij1lQPiZXyjFvfiKAaitT BpJkJjkMYOUwTukKM+RD/Pw= X-Received: by 2002:a63:4650:: with SMTP id v16mr11581047pgk.329.1552471617383; Wed, 13 Mar 2019 03:06:57 -0700 (PDT) Received: from localhost ([110.70.15.13]) by smtp.gmail.com with ESMTPSA id j13sm15626576pfh.32.2019.03.13.03.06.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Mar 2019 03:06:56 -0700 (PDT) Date: Wed, 13 Mar 2019 19:06:53 +0900 From: Sergey Senozhatsky To: Sergey Senozhatsky Cc: Sebastian Siewior , John Ogness , Petr Mladek , linux-kernel@vger.kernel.org, Peter Zijlstra , Steven Rostedt , Daniel Wang , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , Alan Cox , Jiri Slaby , Peter Feiner , linux-serial@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC PATCH v1 00/25] printk: new implementation Message-ID: <20190313100653.GA23478@jagdpanzerIV> References: <874l9721hf.fsf@linutronix.de> <20190304052335.GA6648@jagdpanzerIV> <87lg1rggcz.fsf@linutronix.de> <20190311105411.GA368@jagdpanzerIV> <20190312123857.juatd6fwtfmqajze@pathway.suse.cz> <874l8815uc.fsf@linutronix.de> <20190313021534.GB783@jagdpanzerIV> <87d0mv9off.fsf@linutronix.de> <20190313084028.f2m4qhxd5sjzzawr@linutronix.de> <20190313092759.GA10060@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190313092759.GA10060@jagdpanzerIV> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (03/13/19 18:27), Sergey Senozhatsky wrote: > > Does this mean we keep irq_work part or we bury it and solve it by other > > means? > > That's a very good question. Because if we add console_trylock() > to printk(), then we can't invoke ->atomic() consoles when console_sem > is already locked, because one of the registered drivers is currently > being modified by a 3rd party and printk(), thus, must stay away. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one of the drivers or the list itself. -ss