Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp328689ybe; Thu, 5 Sep 2019 23:28:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9AyBgIZLDRliiAe7fFj1OSGNP51A+3UIbZ1LeqiDb6BK1fvc8u4btWad5Ml8H24bPT6JH X-Received: by 2002:a63:550d:: with SMTP id j13mr6683402pgb.173.1567751328027; Thu, 05 Sep 2019 23:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567751328; cv=none; d=google.com; s=arc-20160816; b=TqQqq/maV8HnIVDVt+01SsV4oEuNa6tuu4VlhMtPnVx3q39U2dvaEs+IHAje8knQ1u 1tCKlY41cas3n3Qw+hdNPG1ubr9Nh8rTHc5t/QvqwtTZUEmE5MpfmLMAqdxAk6vvAKQu Tct/dB/4pqO6ftVQ6MT7OUHYbC/XKd1YcuWBaB6cdFgqvpaMU02Lqj9+QNXulQJ303Vu pLFx0h+Yp5eUvtBLfnRl9xamO6+jV57rZwvTY93TwTkza0iCTzLuOBNzUIDwGXiFEJml Ni4v/omyjytgqRzuuaq3owKxckuRswL91d9lmTayfDPaRzfxxbofAnXk2C3yBUgGDChD ayxw== 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 :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=qUcSdHLdWyVIL7IAOV09G9Oa96rrJX/R+Kg+NVFQYhg=; b=Drd9mNWtFNWV76cx5DMZW728NxDlf/y7hzG7SnroqP5qvrkafb+Oy5a2uPvTr33Mpx tEDhEQeAHxs4ZqZKs260o9ZgEbvCzwF6aSyVM+rRtAaSDF/9qSSHHr1VrWIv6/BB1Hm4 ZAzA7F20pZIZvCv6dDt8sEIJU91pXUzFzkPGWY8O1IcFNUr1NVf2r0jEPM7QVtmLQ+IZ axYsi1abVjPVDn9hgsR9rhD7oB86MbVQGpW48lN307xYy9pZ8uPO8EkUAXKA1ErF6mBm Je0AUyGZesc/4XbzMdxAcyjNt7CFWlSO4KoPLKqASBkF3GASXGaZINvOq1iburJgXWqD a/iQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n140si449965pfd.23.2019.09.05.23.28.32; Thu, 05 Sep 2019 23:28:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388786AbfIEUKC (ORCPT + 99 others); Thu, 5 Sep 2019 16:10:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39844 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732468AbfIEUKC (ORCPT ); Thu, 5 Sep 2019 16:10:02 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C742300BEAE; Thu, 5 Sep 2019 20:10:01 +0000 (UTC) Received: from ovpn-124-235.rdu2.redhat.com (ovpn-124-235.rdu2.redhat.com [10.10.124.235]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26E605C1D4; Thu, 5 Sep 2019 20:09:59 +0000 (UTC) Message-ID: Subject: Re: Why add the general notification queue and its sources From: David Lehman To: Ray Strode , Steven Whitehouse Cc: Linus Torvalds , David Howells , 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 , Ian Kent Date: Thu, 05 Sep 2019 16:09:58 -0400 In-Reply-To: References: <156763534546.18676.3530557439501101639.stgit@warthog.procyon.org.uk> <17703.1567702907@warthog.procyon.org.uk> <11667f69-fbb5-28d2-3c31-7f865f2b93e5@redhat.com> Organization: Red Hat, Inc. Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Thu, 05 Sep 2019 20:10:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-09-05 at 14:51 -0400, Ray Strode wrote: > Hi, > > On Thu, Sep 5, 2019 at 2:37 PM Steven Whitehouse > wrote: > > The original reason for the mount notification mechanism was so > > that we > > are able to provide information to GUIs and similar filesystem and > > storage management tools, matching the state of the filesystem with > > the > > state of the underlying devices. This is part of a larger project > > entitled "Project Springfield" to try and provide better management > > tools for storage and filesystems. I've copied David Lehman in, > > since he > > can provide a wider view on this topic. > So one problem that I've heard discussed before is what happens in a > thinp > setup when the disk space is overallocated and gets used up. IIRC, > the > volumes just sort of eat themselves? > > Getting proper notification of looming catastrophic failure to the > workstation user > before it's too late would be useful, indeed. > > I don't know if this new mechanism dhowells has development can help > with that, My understanding is that there is already a dm devent that gets sent when the low water mark is crossed for a thin pool, but there is nothing in userspace that knows how to effectively get the user's attention at that time. > and/or if solving that problem is part of the Project Springfield > initiative or not. Do you > know off hand? We have been looking into building a userspace event notification service (for storage, initially) to aggregate and add context to low- level events such as these, providing a single source for all kinds of storage events with an excellent signal:noise ratio. Thin pool exhaustion is high on the list of problems we would want to address. David