aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2026-07-01 09:18:33 +0000
committerRobert Wing <rew@FreeBSD.org>2026-07-01 09:18:33 +0000
commit29b07ef31379575fff4344ec331b90c96d899cc7 (patch)
treee6f9dfbfd1f61ce6ce7bc884ebd35bb2c7474095
parent2fc95fe26e725439209217f53dd76437a52be76b (diff)
autofs: rename sx lock description for am_lock
Rename am_lock description from autofslk -> autfsm. The lock description, autofslk, is used as the description for autofs_softc->sc_lock, which is used to protect autofs requests and the like as opposed to am_lock which protects autofs nodes for a given mount. This change allows witness to distinguish different lock orders for each lock. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D57972
-rw-r--r--sys/fs/autofs/autofs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/autofs/autofs_vfsops.c b/sys/fs/autofs/autofs_vfsops.c
index 473a0b2280ac..2159902f8b40 100644
--- a/sys/fs/autofs/autofs_vfsops.c
+++ b/sys/fs/autofs/autofs_vfsops.c
@@ -86,7 +86,7 @@ autofs_mount(struct mount *mp)
strlcpy(amp->am_mountpoint, fspath, sizeof(amp->am_mountpoint));
strlcpy(amp->am_options, options, sizeof(amp->am_options));
strlcpy(amp->am_prefix, prefix, sizeof(amp->am_prefix));
- sx_init(&amp->am_lock, "autofslk");
+ sx_init(&amp->am_lock, "autfsm");
amp->am_last_fileno = 1;
vfs_getnewfsid(mp);