[PATCH 1/2] fs: unreference path on file close
Sascha Hauer
s.hauer at pengutronix.de
Thu Jun 12 00:39:36 PDT 2025
On Wed, 11 Jun 2025 13:56:34 +0200, Sascha Hauer wrote:
> Since commit 83ffe89840e8 ("fs: use filename_create/filename_lookup
> instead of open-coding") we no longer open-code the file lookup during
> openat(). Unlike the open-coded variant filename_lookup() keeps a
> reference to the file which is now leaked and the filesystem cannot be
> unmounted anymore:
>
> umount: Device or resource busy
>
> [...]
Applied, thanks!
[1/2] fs: unreference path on file close
https://git.pengutronix.de/cgit/barebox/commit/?id=a3ef153fdf26 (link may not be stable)
[2/2] fs: unreference path in canonicalize_path()
https://git.pengutronix.de/cgit/barebox/commit/?id=aef3b0134519 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list