Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2589894ybc; Wed, 20 Nov 2019 17:06:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxjuRAXVPtyDlGCac+E2UEfOlq0NNKcrDv6aW6gl79hNMIGRY2PEe8VtIbK0vKkfnL7Rkn+ X-Received: by 2002:adf:fb8b:: with SMTP id a11mr7080698wrr.83.1574298414939; Wed, 20 Nov 2019 17:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574298414; cv=none; d=google.com; s=arc-20160816; b=cy3WWlKLfJDlBSHotMP6ZDA8eNEdDi6k4dnE8YCSQ+joM9yLt4jYwvJmURPLgSa004 Gw9wGZpSGVavWZEpkPJOP4hXhis8d1C7aNW38XjPivae3MIj9OfdxwLU4cyjC6PUqpSt b69aW7sbKlEZxz3wJFvniScHdsqWGfrrtSEHPSMtBErN3jiuwatI2yyB2YDTykv8IGxO UJ8/fN1/DdzOZooFgRCtTh8C01y1LjihMkSoXXOEvsPfL6MjsUsHD1D3IXtX/X8zgk0R 64WBX7VEr71kViGAAQS0MmO3p0u1qZMlkg+/rbZgksEAa2q7EFeNm1JsLoa1he+M9e9B kN1w== 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=+xan1UFVEC5bpc84JCNLbsM7TcNqUcHB/vTfYJqMW5Y=; b=rwK3Ire4pfc1x5dnb0xSnnaCawEUTmft2WqJtU5Rch6Js8sXAJqRHJd73qqzdP5J4/ CqkLJV8XD/shWw6ryOMZWWhD33WXL0CVrAkys7Mj3cKMkNIA6HGslCx5j2cLPSSkeqc6 ow8I84QdIcqKrFX0FTEraEK4RYs5KSVw9DZjo6thYx9+mzTFrNCz3TbuPmY04+igQX39 tcpQE2iAIA9Ot0GvHd/U37NEEcQesncgX1KVkhtdKpdBfRRzud3RWQJzTuUydx9ofwn8 isef5+szQscQ9EzsJMpeyrLNroufaqsnvDrozHLE/jbk58IWkI0DZK3szv1n3uPYpoA0 kmZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CAUd8kFf; 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 q8si999170edb.28.2019.11.20.17.06.30; Wed, 20 Nov 2019 17:06:54 -0800 (PST) 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=CAUd8kFf; 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 S1726593AbfKUBFc (ORCPT + 99 others); Wed, 20 Nov 2019 20:05:32 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44892 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfKUBFc (ORCPT ); Wed, 20 Nov 2019 20:05:32 -0500 Received: by mail-pl1-f195.google.com with SMTP id az9so688530plb.11; Wed, 20 Nov 2019 17:05:31 -0800 (PST) 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=+xan1UFVEC5bpc84JCNLbsM7TcNqUcHB/vTfYJqMW5Y=; b=CAUd8kFfzFjdlwIAqIpwfueKhe+Ro/GYclcICHkgUpZxyRwF35oQLu832eK4hDNQR/ QhQMxXBmwliCO+TOhJ9+8Kj5sHrYqKEw50kytv9PxzrSq9Du0jXbhaAmgjzLC665vp6+ f8LLezB+8AmzONND8zPgBxGQ9Atu8WGE8sv1mhAmdhnPjDDaAZ/Z3fnHic9UxKC4OwKf vMgkmpOTUpTDKijoSGuxemJRhJQO++KHE62QJwzt8xGroqoUq9LOcTETxN1QlEAh8EU4 ZI3yalo6niby9R7U3yqCPLJ1uOCjBJepnJTzgapdH8sgLFDKZSZfua+Q66q62BLq04K1 qh1Q== 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=+xan1UFVEC5bpc84JCNLbsM7TcNqUcHB/vTfYJqMW5Y=; b=Hvc1hNlJEuvbT9aouX7dnLBo3tKCYWZpVVGnD1Va80CNJEHb45WvG/RrjX05fpY3XA pi6Sucq8eHWK/VmMhZRzKNUzhvapeMSzGySU1Mq/cXXfIrentF/2noecmg1OpM23tn/9 LVXzUR80yH6MVErGvlQIxON/grf6ayScjQQC+smTxD9ZuJHGZtx592z9xECt4+7jDhaM eMgNlc4EtGnU44qy3HqVFZqXpyP2RoA9M4BFsZfIREDAEJjT5WvBXYer0GsTI8ZbVVHy t2zzcYxFuCy1lgzTIGT8gj+n5eRY0UoHt69CNbOAskMpBRs/gQy3BilHeTwKRAzqwBqU L/vA== X-Gm-Message-State: APjAAAUeJH6a36+yGzJgWPCLBOIDwsL89xVxgM2G7yJ1X1PBLcHACx5U aq/B+VHnB/pPa8tT66+Gpww= X-Received: by 2002:a17:902:8d81:: with SMTP id v1mr5815296plo.289.1574298331187; Wed, 20 Nov 2019 17:05:31 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:250d:e71d:5a0a:9afe]) by smtp.gmail.com with ESMTPSA id m6sm427110pgl.42.2019.11.20.17.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 17:05:30 -0800 (PST) Date: Thu, 21 Nov 2019 10:05:27 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Qian Cai , Steven Rostedt , 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: <20191121010527.GB191121@google.com> References: <1567599263.5576.72.camel@lca.pw> <20190904144850.GA8296@tigerII.localdomain> <1567629737.5576.87.camel@lca.pw> <20190905113208.GA521@jagdpanzerIV> <1573751570.5937.122.camel@lca.pw> <20191118152738.az364dczadskgimc@pathway.suse.cz> <20191119004119.GC208047@google.com> <20191119094134.6hzbjc7l5ite6bpg@pathway.suse.cz> <20191120013005.GA3191@tigerII.localdomain> <20191120161334.p63723g4jyk6k7p3@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191120161334.p63723g4jyk6k7p3@pathway.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (19/11/20 17:13), Petr Mladek wrote: [..] > It is the first time that I hear about problem caused by the > irq_work(). But we deal with deadlocks caused by wake_up() for years. > It would be like replacing a lightly dripping tap with a heavily > dripping one. > > I see reports with WARN() from scheduler code from time to time. > I would get reports about silent death instead. Just curious, how many of those WARN() come under rq lock or pi_lock? // this is real question > RT guys are going to make printk() fully lockless. It would be > really great achievement. irq_work is lockless. While wake_up() > is not. > > There must be a better way how to break the infinite loop caused > by the irq_work. A lockless wake_up() would do :) -ss