Page MenuHomeFreeBSD

Move clear_unrhdr to tmpfs_free_tmp.

Authored by mjoras on Oct 20 2017, 10:47 PM.
Referenced Files
Unknown Object (File)
Fri, Nov 24, 7:52 AM
Unknown Object (File)
Fri, Nov 24, 2:38 AM
Unknown Object (File)
Tue, Nov 14, 11:02 PM
Unknown Object (File)
Aug 18 2023, 5:23 PM
Unknown Object (File)
Aug 15 2023, 8:29 PM
Unknown Object (File)
Aug 7 2023, 6:53 PM
Unknown Object (File)
Aug 7 2023, 6:53 PM
Unknown Object (File)
Aug 7 2023, 6:52 PM



Clearing the unr in tmpfs_unmount is not correct. In the case of
multiple references to the tmpfs mount (e.g. when there are lookup
threads using it) it will not be the one to finish tmpfs_free_tmp. In
those cases tmpfs_free_node_locked will be the final one to execute
tmpfs_free_tmp, and until then the unr must be valid.

Test Plan

This was originally reported and reproduced by pho using his stress2/misc/
tmpfs* tests. It is trivially reproduced with e.g., and the
problem does not reproduce after the change. pho offered to run some more
stress tests on the change. All of his tmpfs tests passed.

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable