Page MenuHomeFreeBSD

fusefs: fix some resource leaks
ClosedPublic

Authored by asomers on Feb 12 2023, 12:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 7:16 PM
Unknown Object (File)
Thu, Oct 31, 6:15 AM
Unknown Object (File)
Thu, Oct 31, 6:15 AM
Unknown Object (File)
Oct 7 2024, 11:39 AM
Unknown Object (File)
Sep 27 2024, 12:02 AM
Unknown Object (File)
Sep 24 2024, 6:02 PM
Unknown Object (File)
Sep 24 2024, 8:53 AM
Unknown Object (File)
Sep 24 2024, 4:10 AM
Subscribers

Details

Summary

fusefs: fix some resource leaks

fusefs would leak tickets in three cases:

  • After FUSE_CREATE, if the server returned a bad inode number.
  • After a FUSE_FALLOCATE operation during VOP_DEALLOCATE
  • After a FUSE_FALLOCATE operation during VOP_ALLOCATE

MFC after: 2 weeks

Test Plan

Ran existing test cases while watching sysctl vfs.fusefs.stats

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable