Page MenuHomeFreeBSD

Move clear_unrhdr to tmpfs_free_tmp.
ClosedPublic

Authored by mjoras on Oct 20 2017, 10:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 10:16 AM
Unknown Object (File)
Fri, Apr 19, 7:42 PM
Unknown Object (File)
Fri, Apr 12, 5:11 AM
Unknown Object (File)
Mon, Apr 8, 9:17 AM
Unknown Object (File)
Mar 18 2024, 3:18 PM
Unknown Object (File)
Feb 2 2024, 9:10 PM
Unknown Object (File)
Dec 28 2023, 1:02 AM
Unknown Object (File)
Dec 20 2023, 8:30 AM
Subscribers

Details

Summary

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. tmpfs13.sh, 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

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