]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Microoptimize tmpfs node ref/unref by using atomics.
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 15 Sep 2020 22:13:21 +0000 (22:13 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 15 Sep 2020 22:13:21 +0000 (22:13 +0000)
commit4601f5f5ee10e6ea093c6c7289a7157ed527d9d8
tree2a751a5186374a1bebf8de7e773fef7031b8d833
parent3c484f325e60e961c476dfb6ebd992290667d6dd
Microoptimize tmpfs node ref/unref by using atomics.

Avoid tmpfs mount and node locks when ref count is greater than zero,
which is the case until node is being destroyed by unlink or unmount.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D26346
sys/fs/tmpfs/tmpfs.h
sys/fs/tmpfs/tmpfs_subr.c
sys/fs/tmpfs/tmpfs_vnops.c