From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0C5BC43458 for ; Mon, 6 Jul 2026 06:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kernelnewbies.org; s=mail; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8e/Bw6TBt9N0DFq3LIhu5La/IK2lOZpOwLY3432MOfc=; b=Vqq9pulyTMX0Wwo/UgWaWxY/17 utO6VU5+iI6jTGgXzsAfYlpyKGvfXCFBK2SEHb/4h8Txdjfhw3tgwjGmtMxsCllCae1OiWPJwj86W s5ideR/7AcMvMow6cg95d3O+j5hXvf/aaIVCaehrXWid7NbJvtLtwgk6m5AtZyz8ReQWeV1JHZ6zD Q7jCKaCTE116lmvuEEkGOiqK+GohpyU3RF4fVXrnZfYaO9QaIpuOyyR9cGBg8+84lfciWwNcOp8YT K8olWfi27BYSclbP7lPe7fSDRCwNZJQ1KztohcrO4fO4yXcXpi5w8Iwm+p+fR3bglJZCy1Tbf/B6Y FmhYbuWA==; Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.97.1) (envelope-from ) id 1wgdIA-000000004Ad-2Vaj for kernelnewbies@archiver.kernel.org; Mon, 06 Jul 2026 02:58:58 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.97.1) (envelope-from ) id 1wgdHB-000000002Md-09eZ for kernelnewbies@kernelnewbies.org; Mon, 06 Jul 2026 02:57:57 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2caea3f742bso34690405ad.0 for ; Sun, 05 Jul 2026 23:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783321075; x=1783925875; darn=kernelnewbies.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YN9qdcx34AHT7n8XMmDpnRofmgqhdjZM1fTTCVPmGMY=; b=VFFKtRTYdd7BzKeW5trtw35ZmdthG12q7nHp6fWG9tRKzJYJA43JTDLree/o/f+qwl qbH5ki3JF7vqc89Nti5sU4kfntVPlrBRoV97wLPdBQlEJnyEYoH26ZCC9vImoDCgk1hB kBFzsdqPqJzN/trpaCiLUK5MqnuavxpW0+5WDdVwBtqHCqijuGvSklaW5Of7uMkL4zAm VCEsH0KDcI/J4GwUiiY2Vf3cdxZ+A6KkUl24AjP0bvpw8evhcb0n1GwBIGHCKmkopp5s K3YTDeMVTPlBv8/YNWzdpVdzNtdgUSR9F4Z0WMSwEtMf3N7eE+XUkXmW/BdPrndiL2ig hrLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783321075; x=1783925875; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YN9qdcx34AHT7n8XMmDpnRofmgqhdjZM1fTTCVPmGMY=; b=DRtFi2OL4FkSC1maYJTtoKRxUwMn7bBjpytarhg5+1/KMQ1H8m1DVwJ59agX4/Ai71 2qWwKg2yCRWNpFDX40sG5/z+5LL0vfNV+3TNzlPA4xW4gi8x6wl2gp1hSJ3PcCLAZREJ j9kmILMtcJ5Emd4EjNqaiKRrvowIjnLnF5CWfrFhdlFQrwNefPKWXCr5rYijtrOHx5/f seR+YBlFHpxyDSBgEXlBch3i0UaaOGM5c2QhCdhMAwKuBKr0LiyMr/5W8i3U5W68CO95 OmcvMxX0F2dDqpTj3myoG9JKpRovhR3AVvtsvMr6M74bv6k5vvXlxESUtSfVrWkJYSTg un4w== X-Forwarded-Encrypted: i=1; AHgh+RrkRvszvYv0Lmgr4g91X3B3A+v6n1xam7pFBBkX7US9WMLjvRM3KAyyY0ldf4+0ssO/crbRyPC5kh2X/e3S@kernelnewbies.org X-Gm-Message-State: AOJu0Yw/Y/6hgFOGifxUxWOLecLZFw/JbzMYYRMvZVqbsPO/js2o1vDW HSXTtCJn7sx7oxXAmQEpKJHSTbCCQbIASeC0n8EKf30lx+m77JFvbjSB X-Gm-Gg: AfdE7cmsBFsWJc+A0Fo4hiFIf6sn9VSr06O/nVo6CDNbD9dBs7FSCtTT/5XwwmHkTFw bcGx/+g6lgp1trxFMRIxGY/8INnrPO4CfU8SU2dDsafVi2K50ZAPmnHxcx3nnUsddL9/7whx7pP xKufpSjlhCC9fkeEsQhWJyL2bIiE/aO//UFMjvj4PeSh+oG87SNgGa28K3y/Iw997ebr/FQC27N LiK0PdVXpUqAD+ekiMtTmEre5Wr9eOUWOUTg7+6/KoGSH8az5PpivGyGysRLMP7wT6JNobf5j1l gc487TYdKDNCAb6/2vIfe1lrzC235pZaxSTWod67AtOP6xnDlLinUEruVPjRl4GdUAOSJvEvSkN jth4E+UjXmBKU6RKKrAJe5txRLVcRXFaCQ/tyz8C7TyopG2a3zbKvdUuUKd86Lw1HNlio9/is2J I8MY7x1tHgxE46/ONYaJLHhgJ/RYXTbc9iJCl/WtIcuxA= X-Received: by 2002:a17:902:fc8e:b0:2cc:7e4a:bcc5 with SMTP id d9443c01a7336-2cc7e4abe10mr58806655ad.32.1783321074920; Sun, 05 Jul 2026 23:57:54 -0700 (PDT) Received: from localhost (74-50-127-175.static.hvvc.us. [74.50.127.175]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cca31a9218sm8712035ad.8.2026.07.05.23.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jul 2026 23:57:54 -0700 (PDT) Date: Mon, 6 Jul 2026 10:27:47 +0330 From: Ali Nasrolahi To: Raka Gunarto Subject: Re: Seeking guidance on detecting mount point inactivity Message-ID: References: <2ece89da-c38e-4a4e-bf94-f395286e3117@systemli.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: Richard , kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On 26/07/05 05:34PM, Raka Gunarto wrote: > Are your workloads okay to wait indefinitely on a call to open()? I > believe you can use the fanotify permission events (FAN_OPEN_PERM) to > queue the call and then poll for active handles until they close. > After the maintenance operations then respond FAN_ALLOW to the > requests in the queue. To be honest, I don't have a concrete idea of how different workloads would behave if an `open()` were blocked for an extended period, but I think they should be alright. Could you elaborate a bit on what you mean by polling the active handles? My understanding is that, regardless of the enforcement mechanism (fanotify, eBPF, or something else) the challenges of determining that a mount has actually become inactive (and remained so for the grace period) are still there, right? same ebpf issues, what if the daemon didn't count the existing handles or somehow crashes and lose the count. These challenges are common; or am I overlooking something? --Ali _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies