summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-11-07 15:42:11 +0000
committertrasz <trasz@FreeBSD.org>2014-11-07 15:42:11 +0000
commitc03d95d34124cf0afe160b15ff8c0ba71f538d71 (patch)
treed3095055ab6a367061bd24734c11b26419945287 /sys/fs
parentaba7b57a359d5908c47c366fe4127ade7658215c (diff)
downloadFreeBSD-src-c03d95d34124cf0afe160b15ff8c0ba71f538d71.zip
FreeBSD-src-c03d95d34124cf0afe160b15ff8c0ba71f538d71.tar.gz
MFC r272405:
Call uma_zfree() outside of lock, and improve comment. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/fs')
-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 ddf8372..52461d3 100644
--- a/sys/fs/autofs/autofs.c
+++ b/sys/fs/autofs/autofs.c
@@ -459,13 +459,13 @@ autofs_trigger_one(struct autofs_node *anp,
if (last) {
TAILQ_REMOVE(&autofs_softc->sc_requests, ar, ar_next);
/*
- * XXX: Is it safe?
+ * Unlock the sc_lock, so that autofs_task() can complete.
*/
sx_xunlock(&autofs_softc->sc_lock);
taskqueue_cancel_timeout(taskqueue_thread, &ar->ar_task, NULL);
taskqueue_drain_timeout(taskqueue_thread, &ar->ar_task);
- sx_xlock(&autofs_softc->sc_lock);
uma_zfree(autofs_request_zone, ar);
+ sx_xlock(&autofs_softc->sc_lock);
}
/*
OpenPOWER on IntegriCloud