summaryrefslogtreecommitdiffstats
path: root/sys/fs/autofs/autofs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/autofs/autofs.c')
-rw-r--r--sys/fs/autofs/autofs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c
index 52461d3..f6838f9 100644
--- a/sys/fs/autofs/autofs.c
+++ b/sys/fs/autofs/autofs.c
@@ -297,9 +297,9 @@ autofs_cached(struct autofs_node *anp, const char *component, int componentlen)
* is necessary for wildcard indirect map keys to work.
*/
if (anp->an_parent == NULL && componentlen != 0) {
- AUTOFS_LOCK(amp);
+ AUTOFS_SLOCK(amp);
error = autofs_node_find(anp, component, componentlen, NULL);
- AUTOFS_UNLOCK(amp);
+ AUTOFS_SUNLOCK(amp);
if (error != 0)
return (false);
}
OpenPOWER on IntegriCloud