Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp286820pxa; Wed, 5 Aug 2020 00:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOOdCudsMC+4iMGdJMxzte/vO4lPUncNW8noxV9qtZmcuumGu4SkPGiNvy9s8zhfceMGfl X-Received: by 2002:a05:6402:2031:: with SMTP id ay17mr1590905edb.46.1596613591512; Wed, 05 Aug 2020 00:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596613591; cv=none; d=google.com; s=arc-20160816; b=ilo+AWYLwqhuS90r2Xp0IXI3fko6MTAJdVw/1Qwx5YcMxsOpkvw4xXWfraWg03n7Bq a4J2phUnQyxvD3gZ0xcty2MSiS0jgiIU599DCe7kl3jAZAXaHyQmGnQ7hGLavxQnLBI8 kIglzUyqoeXr9+XP4OlplWZvGNPy994o8zqXilPmEYXnPcEc1ufQgTJHXIsWWYcz9c21 ct76iUfdFLLApW040Z7CmWHMykF0pSuIzwB6jCwV2tlvKMSOnpuUhzTw4J4rg/9GZzYF ziBbmWH+LSmGGKKiAXYnAVuy5qKbLWxV7kESnaQAx9wBrV0gDlYwqP5t/8uIz6lFl+7F OYCQ== 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=c7MS/sDmqsu2UeEHE/y1WIBOLGRyoL/hTSKDaerW230=; b=dogrcSGXQpq2PEp4g2mkOGj/cgOaUpweskze9Q9sTatMTOa5qggFhzA9JsGiWYJ1EO nwIlQjNNh6ZXWVEkeC6vpKdDRtrxXDdVlP/UvFrg3/oKWCyl1+UDmspWd4odX4F5DxdX sqwqyZ6C2TmnfuhkU/M+fIeV7H07Gf05gv/N7c3p1xbv13UKjP8AelK6W9hHxinHPJbl RCyhMUMHQCUztcQnlJJgOz6Jt5IUZGwlSVkgN1gmamYKxenY6rQiuVWCPPeHAVQWXlGD f6QHuZrytBW3mzO0sG1a/ssP28N5NMfuiP7OSwiCyMoI9rCdF0rF71ujIJASAlTZi444 SxPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="G2U85/Sh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si785309edx.559.2020.08.05.00.46.08; Wed, 05 Aug 2020 00:46:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b="G2U85/Sh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726104AbgHEHny (ORCPT + 99 others); Wed, 5 Aug 2020 03:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbgHEHnv (ORCPT ); Wed, 5 Aug 2020 03:43:51 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF85AC061757 for ; Wed, 5 Aug 2020 00:43:50 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id c10so2072878edk.6 for ; Wed, 05 Aug 2020 00:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c7MS/sDmqsu2UeEHE/y1WIBOLGRyoL/hTSKDaerW230=; b=G2U85/Sh33+IcIW0dxhFoe+oW0YUFI67TOMZGh5yXHDRtVNTTIES6+/5ghbYizPlrA NxqWRNYE+WiZQ5x/6V5NBGxTNuIsiyaYdE1+DK4um+EutgPdxUhLgshYgl+AqycDH9vs 4dvJRUCTUHLDjtWW+GCIgH/TbkBbaYm/yDD6c= 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=c7MS/sDmqsu2UeEHE/y1WIBOLGRyoL/hTSKDaerW230=; b=K0yR0n3BQc5xawG5vrTg2Rhg+dbHdz38tFIGvybR7HOy77FbA9TP/EqNbBGcoh1qJU tfpjsAVCWHvulxJrHlvflskf3IvDwNZFixq19KiKz8U6GxB/Sx017ObPBb8V0F50gL+0 TJEd0poJNXBvEDv/YH2/WKbKZlVxdkSIA8qNcamDDiFny0NYYT1no63gcLXF08DUqxYx hMDNg5aGY/j9ceG0RWzT8/FzDMnop3WkSyaBsb1ozvA0BPzYg49w12s8sNPi9HSUWAHu Y1l4qpRW8PIFWgzVBxE6rrE1ogM7XSf1N+odUjmq83BSqpekCTIn+u1/cenIO6v8hKy3 4/NQ== X-Gm-Message-State: AOAM532ewPsPhe8W+pvybIONP1KixlkQphDf1vhniFPEB4gsHYdkl4jK 8l7bFBtf5IifNgHkQbINb9n3rU0xqWi2VhiaHR7RBA== X-Received: by 2002:a50:fb10:: with SMTP id d16mr1638111edq.134.1596613429317; Wed, 05 Aug 2020 00:43:49 -0700 (PDT) MIME-Version: 1.0 References: <158454378820.2863966.10496767254293183123.stgit@warthog.procyon.org.uk> <158454391302.2863966.1884682840541676280.stgit@warthog.procyon.org.uk> <1293241.1595501326@warthog.procyon.org.uk> <43c061d26ddef2aa3ca1ac726da7db9ab461e7be.camel@themaw.net> In-Reply-To: From: Miklos Szeredi Date: Wed, 5 Aug 2020 09:43:38 +0200 Message-ID: Subject: Re: [PATCH 13/17] watch_queue: Implement mount topology and attribute change notifications [ver #5] To: Ian Kent Cc: David Howells , Linus Torvalds , Al Viro , Casey Schaufler , Stephen Smalley , Nicolas Dichtel , Christian Brauner , andres@anarazel.de, Jeff Layton , dray@redhat.com, Karel Zak , keyrings@vger.kernel.org, Linux API , linux-fsdevel@vger.kernel.org, LSM , linux-kernel@vger.kernel.org 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 Wed, Aug 5, 2020 at 3:54 AM Ian Kent wrote: > > > > It's way more useful to have these in the notification than > > > obtainable > > > via fsinfo() IMHO. > > > > What is it useful for? > > Only to verify that you have seen all the notifications. > > If you have to grab that info with a separate call then the count > isn't necessarily consistent because other notifications can occur > while you grab it. No, no no. The watch queue will signal an overflow, without any additional overhead for the normal case. If you think of this as a protocol stack, then the overflow detection happens on the transport layer, instead of the application layer. The application layer is responsible for restoring state in case of a transport layer error, but detection of that error is not the responsibility of the application layer. Thanks, Miklos