Article View: muc.lists.freebsd.hackers
Article #49Re: umount EBUSY and inotify watch
From: Mark Johnston
Date: Tue, 20 Oct 2026 14:34
Date: Tue, 20 Oct 2026 14:34
26 lines
3045 bytes
3045 bytes
On Mon, Oct 19, 2026 at 08:37:03PM +0300, abi wrote: > Hello, > > I've noticed that sometimes it is impossible umount because of EBUSY under > FreeBSD 15.x. Mostly fuse mounts with inotify watch, so it looks like > inotify holds reference to vnode. Yes, this was reported in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299241 > > Is it correct behavior? I think under Linux watched mounts can be unmounted > without relying on -f flag. In general I'd expect an inotify watch to behave somewhat like an open fd, in which case it should indeed block regular unmount. But the implementation also aims to be compatible with Linux, so this behaviour should probably be changed. I think the watch needs to maintain a hold of the watched vnode, rather than incrementing its usecount. Then, we need to tweak vnlru to avoid reclaiming namecache entries originating from watched vnodes. -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<atd77_ZKlksaF_r9@nuc>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<39a45639-0c79-40d0-af32-243360d8d51a@abinet.ru>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Mark Johnston <markj@freebsd.org> Newsgroups: muc.lists.freebsd.hackers Subject: Re: umount EBUSY and inotify watch Date: Tue, 20 Oct 2026 10:34:23 -0400 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-hackers@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <atd77_ZKlksaF_r9@nuc> References: <39a45639-0c79-40d0-af32-243360d8d51a@abinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="2971"; mail-complaints-to="news-admin@muc.de" X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792506865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ezw1eET0K2NZ3GRJgj+kXXKpLzMut85uAdyGcs0MCow=; b=jas9xSrXe0gbmigNBxk/CUB0JAoLNVLlap/bF58m4mCqyiEL4f9C7fQG8H3Yu8Qr81LRfP qcMisbj8DsdF2e1WAqZpmVhR0ZeemJm6WBO30OYKitv3KWHxdneZPlQ9ev7EW5UYt3+b0o thTuU7HubSeRwOxKzNgcJImiqgkAelHNaG3S/DfK5w1ploO8aMKrTk5CumrYdtLHyKOXd2 N7Yus4KyhX5jdbVU7mQ290crWXIfh1XKt13jfY3H4NcJG/br8YaaZMIE0WhGAiVdbt3r4d SNG8PZbw2e04eQrAY8PQocbndeOv6Sa9ZVXodOyW0j55ThRn8MkktwSmlRQKIg== Precedence: list Content-Disposition: inline In-Reply-To: <39a45639-0c79-40d0-af32-243360d8d51a@abinet.ru> X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes X-Received-Bytes: 2833