Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1965127ybe; Sat, 7 Sep 2019 06:23:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVxJtU4StJIKQn6skmWGisoGChZM+KS5sgKlgtpOtpqX2O4S3f353z8XczNMAQjYztV408 X-Received: by 2002:a63:4562:: with SMTP id u34mr12361486pgk.288.1567862621980; Sat, 07 Sep 2019 06:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567862621; cv=none; d=google.com; s=arc-20160816; b=wofE62CT+Qp2ZL5CjUeZ+r/KHRiDSTSQpAJZcxhuQtggmzfO+xxgCcwRsDWyE+/0xF eGo7kXa7ubOS5YDsz7+4KryFVbmosUlw6/VURNaUfpXd+o1TtD7lARDLfK5qCss3H+QV Qruo0/W3tuZnP0Wi1tQWr6CA+GLAjuG659AMg1y754xKq8hZUQpOXaT0hfQlTZxOQidO vRUnST8wOMmvJVrRhei39Su/j/cgOLUKz2g6Tm//2IrVGWreUwNoSWMR3agZy5Ahc/zh IGhjQ1y7LGRtOrHQpmbG7TbXKaKntROwwbpt8MRUwVdmJxCwLa0f/ApaJrkVQw/p1zBh IvLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HgnD7xuPPV7kJPJv1y/oxrmL+dxJJMuTrQ4Q4FChOdU=; b=YPwf4NJ9wW30ZnN7y/zJ8awxcompbnCaDuSrc/qR67Yc76P8Av07HhX7Xjq7DZhYM8 bb2LEuvGdJ0xewm0dudhzBJYQ+wtmSGXKavAiHpIG3sENERQfXlGl6aIYrgJM2IC8tvn WS4UgEFcR1EqPcgpGeqx7/AquKRzyCzyUQGVK5Na+da6aDwDitnbuqUVzEzGJ4DQU6vY qwYwSRkaDvRNDykwdmMXUYmC+GyGA4lXQ2PS36agETWXa6ODBZ/O6pLEBNUzdK7WX9hN f+kwOMHMvyFYUziJ5fd+pgLbV5H8WUUEPYR91m1S+5SVTFO0JaUuroMelUGQs7b1j+uM 6G1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=S6FXIRge; 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 k4si7719471pjl.104.2019.09.07.06.23.26; Sat, 07 Sep 2019 06:23:41 -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=@linux-foundation.org header.s=google header.b=S6FXIRge; 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 S2403863AbfIFRPI (ORCPT + 99 others); Fri, 6 Sep 2019 13:15:08 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37801 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391743AbfIFRPH (ORCPT ); Fri, 6 Sep 2019 13:15:07 -0400 Received: by mail-lf1-f65.google.com with SMTP id w67so5658922lff.4 for ; Fri, 06 Sep 2019 10:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HgnD7xuPPV7kJPJv1y/oxrmL+dxJJMuTrQ4Q4FChOdU=; b=S6FXIRgesHQioG8oGxLk5Tjwzb4SPiDI6TQkN/1PfVNUkJMeUM47+DjxmFZZnsgnqF aVUh5gjMjdVeG3Ez1LdJPa9NKOGaCIHQumkrSOBf3OS+YC+yfMLrM6/zSsHJRG8ghrAg d5Mr3bY5beGZhlJwy9YNIxLVtQzi4ydOFbhE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HgnD7xuPPV7kJPJv1y/oxrmL+dxJJMuTrQ4Q4FChOdU=; b=U+BTVZN0IjbhzTgYTZtnueRL68kLIH02P0o/lIbwAvrZCdQTgGfEK76Ilvkcym1C3p TItrRU+Q1PFxw4XJayvQQWJ/NJdFHM/pVpHp0g0J5AFOPxETX+HFIxyGTisROvG2DFT/ z9TPdr6aNAj9WABlATWj5p+VzRYStrPZfoTdZNt4BkyBau90SnEb7H0vqKoBXhr7yZNj uTawR8CEdLziqL46YQ0Iyw5WWx/X4fHaCqcEI9V/0v8UjEQVtPD6f/yyUFbNN+BxfYQ9 9F6s+T7hgpdcspvalOaPEzJK1e/jvXHYq1Z2wYfkOLyzX9CwjC/c/qkEDVjHialjwRna DSHQ== X-Gm-Message-State: APjAAAUt3TsQNdtNu3Qkucg4VpE3EZ7HhlxJxOeY6gJLH88FS5SaChi+ To54vg9svr8/weXurnFTB/H6toKpcjM= X-Received: by 2002:a19:431e:: with SMTP id q30mr7063547lfa.171.1567790105504; Fri, 06 Sep 2019 10:15:05 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id p27sm1247842lfo.95.2019.09.06.10.15.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Sep 2019 10:15:04 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id t14so6701836lji.4 for ; Fri, 06 Sep 2019 10:15:04 -0700 (PDT) X-Received: by 2002:a2e:8507:: with SMTP id j7mr6626752lji.156.1567790104003; Fri, 06 Sep 2019 10:15:04 -0700 (PDT) MIME-Version: 1.0 References: <156763534546.18676.3530557439501101639.stgit@warthog.procyon.org.uk> <17703.1567702907@warthog.procyon.org.uk> <5396.1567719164@warthog.procyon.org.uk> <14883.1567725508@warthog.procyon.org.uk> <27732.1567764557@warthog.procyon.org.uk> <8e60555e-9247-e03f-e8b4-1d31f70f1221@redhat.com> In-Reply-To: From: Linus Torvalds Date: Fri, 6 Sep 2019 10:14:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Why add the general notification queue and its sources To: Steven Whitehouse Cc: David Howells , Ray Strode , Greg Kroah-Hartman , Nicolas Dichtel , raven@themaw.net, keyrings@vger.kernel.org, linux-usb@vger.kernel.org, linux-block , Christian Brauner , LSM List , linux-fsdevel , Linux API , Linux List Kernel Mailing , Al Viro , "Ray, Debarshi" , Robbie Harwood Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 6, 2019 at 10:07 AM Linus Torvalds wrote: > > Hmm. Maybe somebody can come up with a good legacy signaling solution > (and "just use another pipe for error notification and OOB data" for > the first one may _work_, but that sounds pretty hacky and just not > very convenient). ... actually, maybe the trivial solution for at least some prototyping cases is to make any user mode writers never drop messages. Don't use a non-blocking fd for the write direction. That's obviously *not* acceptable for a kernel writer, and it's not acceptable for an actual system daemon writer (that you could block by just not reading the notifications), but it's certainly acceptable for the "let's prototype having kernel support for /proc/mounts notifications using a local thread that just polls for it every few seconds". So at least for _some_ prototypes you can probably just ignore the overflow issue. It won't get you full test coverage, but it will get you a working legacy solution and a "look, if we have kernel support for this, we can do better". Linus