Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp100918ybe; Thu, 5 Sep 2019 18:14:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIyqHmOsF0hscI4+VP5hkwnFLRZ/huqi14Zm4gISzygApm0D6CmCl/GGA1i+swCq7NxV5j X-Received: by 2002:a63:b904:: with SMTP id z4mr5658303pge.388.1567732484444; Thu, 05 Sep 2019 18:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567732484; cv=none; d=google.com; s=arc-20160816; b=aUP8Ss8txJUcDqb1d/1zczlxTlsL6W2FZZ9i7l17SON8cRIcpyTWrna7xQg6Z1M+fj ggblaPVOWH/antJ1tFEy9O7JVRtti8uvZGhDjixkQ0FYJU2IMS1er+ew5/i49Egjilnh II76VvAnHGcnQt2zxnMkw6Wl1mZ/ZVce5KqPCm0J+CHlF0vgIclEb4keMRqb9SYlts8e oDzkOlqqSqavFoh4DASJaBjUyaJS/FSBl7V2Med/O2towsSzIxpvGS02eXRcIkHIOZvR EnY0ZHGCwMdaKvlCALHXa6HQJ3B8rSW5lqNwCwE8Nzl2mz9+vuKaVlskrsEk96f2E7h8 vzvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=37SNL74/8vIJiQ4/3LBBaQMSB6Erx0upGC/Ag9Upiao=; b=SfwdRH3XK378vCAMrbqXULxJiDGXhfWVlhD35cRUe/U6vkbtCoUR5jJdeR5BlRt8hP hkqNy8YH6++TXTsBVQkfiUS6wC/KvdgrOIK+a/0qjnXUAuL9FHt4znq5RjtQv9M2wyYJ ySiVVcH8ggZ10KErZanYTv3mPJpaWlkqn+HqMXI7XPiT/M5tmWpZn7WmZYNpIZCdevsu 6QUbRHjFHWegnjpVD/xtbdqp3p6+4JOP9wrsUvDEflLH87lPA1IlQTbF/PKomJLC98lr kBluZzTCpzzD/qvt8EQZd8CgncpEEYRdLZulStp5NQdQ8ojTY7ASIuM4ShLhSP2XqZS6 VwUQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r200si3234342pgr.518.2019.09.05.18.14.28; Thu, 05 Sep 2019 18:14:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733254AbfIEROV (ORCPT + 99 others); Thu, 5 Sep 2019 13:14:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:42636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729945AbfIEROV (ORCPT ); Thu, 5 Sep 2019 13:14:21 -0400 Received: from oasis.local.home (bl11-233-114.dsl.telepac.pt [85.244.233.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8DB8820828; Thu, 5 Sep 2019 17:14:19 +0000 (UTC) Date: Thu, 5 Sep 2019 13:14:13 -0400 From: Steven Rostedt To: Qian Cai Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Michal Hocko , Eric Dumazet , davem@davemloft.net, netdev@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/skbuff: silence warnings under memory pressure Message-ID: <20190905131413.0aa4e4f1@oasis.local.home> In-Reply-To: <1567699393.5576.96.camel@lca.pw> References: <20190903185305.GA14028@dhcp22.suse.cz> <1567546948.5576.68.camel@lca.pw> <20190904061501.GB3838@dhcp22.suse.cz> <20190904064144.GA5487@jagdpanzerIV> <20190904065455.GE3838@dhcp22.suse.cz> <20190904071911.GB11968@jagdpanzerIV> <20190904074312.GA25744@jagdpanzerIV> <1567599263.5576.72.camel@lca.pw> <20190904144850.GA8296@tigerII.localdomain> <1567629737.5576.87.camel@lca.pw> <20190905113208.GA521@jagdpanzerIV> <1567699393.5576.96.camel@lca.pw> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Sep 2019 12:03:13 -0400 Qian Cai wrote: > > > and could deal with console hardware that involve irq_exit() anyway. > > > > printk->console_driver->write() does not involve irq. > > Hmm, from the article, > > https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter > > "Since transmission of a single or multiple characters may take a long time > relative to CPU speeds, a UART maintains a flag showing busy status so that the > host system knows if there is at least one character in the transmit buffer or > shift register; "ready for next character(s)" may also be signaled with an > interrupt." I'm pretty sure all serial consoles do a busy loop on the UART and not use interrupts to notify when it's available. That would require an asynchronous implementation of printk() which would be quite complex to implement. -- Steve