Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp291274pxu; Fri, 11 Dec 2020 02:26:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeaBqz0UlcMJQlJlg+uDNsTvQgt2/lmjC2t64wQAE050fSG1QTIq/Lk21CGQi5qpzbEbUb X-Received: by 2002:a50:fb85:: with SMTP id e5mr10863166edq.153.1607682397179; Fri, 11 Dec 2020 02:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607682397; cv=none; d=google.com; s=arc-20160816; b=T//i/7Y1w3JEweYrpmwE1BfnULB/RNzhcOy/ISQsa+N5NgGPn1PdbqOUOzyz0gyEcb m9ISFy3/iP4vYrL7Rq+v4xd4ClI1u8Doh5pM3fNONBb9P3xd51KbG4RGCjcvO9iacD1j sla552KAAUucFINsAhBVOhcUrPeSftA+YPkCKHfyKMD0maa3LGbeVR6VtYqCPXucxaRr SsnwFm9KX+JVgk8EdhHbWIskkNGt3Pmuelbl81NZqhrXOyLfLWjPFvnKye1S4KeTrbf0 sL/h59MZP3Rl5wnEwlceL4+3AiIE4QEbZ8YzzxnbeLSME17C6c6mP5oOYGjg91bifNxl tA1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date:dkim-signature; bh=CpA6gxKkHV08hJECSbbBwUFG46PBv1T6665ufiVVTc4=; b=lcEXJTfjHNRciJrfx3HPqaPN51sgkwelZeDAbS9amngro4e8r3qEaoXVJSUAIR50MX aYOxei+xN1hfHO3ZcS7EcYK5obYLqewGqXsGCshLx3+w1lcKjPRbIiwjMxu4DOioMRQI 8ST9d+pIgVwxu6p+beA6IaTbgokitrgvV5r6YlPmDpp5un/Vz4WWNOsxhcmG1U+bccOd TKkngzdyj56BTH8JLDtqe70lyyZx5Bsseq5CumV2cNXFiVfjnqn8+lGV4dXENnuQ7SFt ofccxJELGYqf7Q8VVw9vKmrXZGQs+FutZukgFmcYuNQZjoZlDIvXIxe1GdSwSzwKo5Nq rwwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QQSvBiZn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw16si4126428ejb.430.2020.12.11.02.26.13; Fri, 11 Dec 2020 02:26:37 -0800 (PST) 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=pass header.i=@google.com header.s=20161025 header.b=QQSvBiZn; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389078AbgLJXqb (ORCPT + 99 others); Thu, 10 Dec 2020 18:46:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394464AbgLJXp7 (ORCPT ); Thu, 10 Dec 2020 18:45:59 -0500 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E88C0613D3 for ; Thu, 10 Dec 2020 15:45:19 -0800 (PST) Received: by mail-oo1-xc36.google.com with SMTP id s1so1722521oon.2 for ; Thu, 10 Dec 2020 15:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:user-agent:mime-version; bh=CpA6gxKkHV08hJECSbbBwUFG46PBv1T6665ufiVVTc4=; b=QQSvBiZnpJvWQUgf6zIz4KYO0MkAeosE304pZ3yR/dpj/IpD4AnjKWGvt4Spf0zlWY e17ixx0vVAJ3c78ZVuBhL+qrGw/IXL5/B8vlcOIS14VqVUxj16mKN/sIBftFl7SdtVkK IeEO4Tmyzx/ZQVBqU7emz3Z+JnX6AHZ9kqdQdtroUSElUppcC4lxvzd4NZZld+IgGW7W i98abelo+JQ8C9EJqVA2Zb5ZAMb81KE1Od+vla1JAyNz/Ndhi5eqqPXPtfUwPfbMCrH9 rjDTqo9H8+YRW6PFm4A+pF/1r6B8veTEofV22oFVc4efY59vTJQHTowlmxQJCVgs5dOU /W1w== 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:user-agent :mime-version; bh=CpA6gxKkHV08hJECSbbBwUFG46PBv1T6665ufiVVTc4=; b=LCiTse2K1lzHROrwY+jS6RdLuSmmMk9BuPnI9t+LjsvfwjDTZuxGI/cnZhPRVrRzXq fqt/B75YjrQ1sxgyzPYNGUXsnIIJQzq5l/yPWIqH/cDvpJjxNRWbIGHQvceUg72mhgiN KgO51vTFeMKwID3mMYyv63ZU/nAqSXkh8wGbAEWhlpx984GKpFEMkGBw5L6vke2Fa/vo 0UrGw/QpzkRNo6PAKZwn4OVKpI6tgCYy5IQxBoVsnJpFvyVLcBLKJx8mqIwK9EfSkaOF mL8p45Nv1LlQu/XU9mAHguLVQy2RkSc6d6TV3g3HM0bpSLFc3VBqMY3Q4nvX2BrThmF/ xo2w== X-Gm-Message-State: AOAM531ocg9cmuF0w+CFwavKdUnAm6AVkiLnSX3mP7xXd3gAbU5IC5h2 1YZM+Q5NdLcCDTUBh+Uq73COqQ== X-Received: by 2002:a05:6820:41:: with SMTP id v1mr7903689oob.41.1607643918252; Thu, 10 Dec 2020 15:45:18 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id h20sm1431541otj.57.2020.12.10.15.45.17 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Thu, 10 Dec 2020 15:45:17 -0800 (PST) Date: Thu, 10 Dec 2020 15:44:57 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Jan Kara , Amir Goldstein cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: linux-next fsnotify mod breaks tail -f Message-ID: User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jan, Amir, There's something wrong with linux-next commit ca7fbf0d29ab ("fsnotify: fix events reported to watching parent and child"). If I revert that commit, no problem; but here's a one-line script "tailed": for i in 1 2 3 4 5; do date; sleep 1; done & Then if I run that (same result doing ./tailed after chmod a+x): sh tailed >log; tail -f log the "tail -f log" behaves in one of three ways: 1) On a console, before graphical screen, no problem, it shows the five lines coming from "date" as you would expect. 2) From xterm or another tty, shows just the first line from date, but after I wait and Ctrl-C out, "cat log" shows all five lines. 3) From xterm or another tty, doesn't even show that first line. The before/after graphical screen thing seems particularly weird: I expect you'll end up with a simpler explanation for what's causing that difference. tailed and log are on ext4, if that's relevant; ah, I just tried on tmpfs, and saw no problem there. CONFIG_FSNOTIFY=y CONFIG_DNOTIFY=y CONFIG_INOTIFY_USER=y CONFIG_FANOTIFY=y Hugh