From owner-freebsd-hackers@freebsd.org Wed Apr 7 04:50:28 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 907BD5C9F74 for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFX5J1tXHz3ryP for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 3EEE05CA062; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D9E15C9FFB for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFX5J0zXwz3rp0 for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id q26so17482444qkm.6 for ; Tue, 06 Apr 2021 21:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jRD1QFH/rgzfhYmFqtyKOmgZv9DvaTXsSNXZGWIGi9I=; b=a9iXUJ6fHDlZqUJDFeQAoCBXdIyegfPyDbvVu5bLqX6ExQBsNNMTcnNoLwBk7qBZa5 k1CDycbazK+GFrGb8HPA3iS5e4zOPM/lPCpmEfl/b187BXjjqav5QojOWYludUT+W9zJ CYSH+LIqrSmJXlU3tob7wVItAwQJ7/jlf9K3Qo00CijvWht7A4iFO4KebuHq01LrIPzk aa0OE5y4xy4dCme8YYBuImypFk8/1hQiKXxvDcqi5ZJcAjxC7jAuyTUBx3c1nHLhdCOl 6QJR672aU7T7tuffvEmyZjNyN/Awlbzg8FD7kSgD4RQ5FgRd7/9GXPYgsTv1dVkYN3U1 g50A== 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=jRD1QFH/rgzfhYmFqtyKOmgZv9DvaTXsSNXZGWIGi9I=; b=nmdA+Q1wsXz+TXPYYacJuk0aQl5gZ6JymxvvhL5hPC6Dl5aM4Vwu0qZAafN1ZO0/Cq nC9oMLffvFO9dhhK9EA+DvqnBXmtPUp3UYvsQ3MLf1jU3gz0o/985iNPvzMpwXepPVtU sHsllLGn+G8HgdufNZbNJM9oWNfuNp3HM9n2mMj6xpIC6CyufoVxVB1mNLY63YFBLkFO In0Fz+cAxlqMLpmWMS+6K1MofsPZoQ8vE7Vr9HHl0el5EsmsHSZhSFt4bcBjlZtQPc4s +mf0Ap/FmFTl1W3tKE43iA1+JUCCA47YsAsESxM72H/uqE1++zzo9+3tD4cdxc8NzZbZ xy1w== X-Gm-Message-State: AOAM531SIV6GoB6j+bOnrpGHcxmsyrisNCr5YJmaD+xIAHaoMcUqmUgU HczBbsjQLLevQa3geJFStF2OOyyxfUOCkf+NAKFusg== X-Google-Smtp-Source: ABdhPJxGRjMYnOfml8v5trtqgTSzr6iOQR6dIgXn6fxAq9kMByl+zu9jbl9FPDY8yx2z1EDWKAt50hJ6Du6oEh8p9oE= X-Received: by 2002:a37:a085:: with SMTP id j127mr1403340qke.206.1617771027143; Tue, 06 Apr 2021 21:50:27 -0700 (PDT) MIME-Version: 1.0 References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> <20210407071419.6dc84f3c@rimwks.local> In-Reply-To: <20210407071419.6dc84f3c@rimwks.local> From: Warner Losh Date: Tue, 6 Apr 2021 22:50:16 -0600 Message-ID: Subject: Re: RFC: possible issue with kqueue To: Rozhuk Ivan Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4FFX5J0zXwz3rp0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 04:50:28 -0000 On Tue, Apr 6, 2021 at 10:14 PM Rozhuk Ivan wrote: > On Sat, 3 Apr 2021 11:21:50 -0600 > Warner Losh wrote: > > > > > https://reviews.freebsd.org/D19690 > > > > > > > > I do not finish this. > > > > Plan was: implement this and catch unmount notify in my FAM, that > > > > in glib20. > > > > > > > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > > > > > > > I did this in conjunction with the forced unmount work of chs@. > > > Where I can learn more about this? > The devd stuff is documented in devd.conf(5). The umount stuff is documented in the commit message for hash d79ff54b5caad61e657b9cc651aa256f3949b97a commit d79ff54b5caad61e657b9cc651aa256f3949b97a Author: Chuck Silvers Date: Mon May 25 23:47:31 2020 +0000 This commit enables a UFS filesystem to do a forcible unmount when the underlying media fails or becomes inaccessible. For example when a USB flash memory card hosting a UFS filesystem is unplugged. ... https://cgit.freebsd.org/src/commit/?id=d79ff54b5caad61e657b9cc651aa256f3949b97a has the whole commit message. I'm not aware of other documentation for it though. Warner