diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-07 15:42:11 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-07 15:42:11 +0000 |
commit | c03d95d34124cf0afe160b15ff8c0ba71f538d71 (patch) | |
tree | d3095055ab6a367061bd24734c11b26419945287 | |
parent | aba7b57a359d5908c47c366fe4127ade7658215c (diff) | |
download | FreeBSD-src-c03d95d34124cf0afe160b15ff8c0ba71f538d71.zip FreeBSD-src-c03d95d34124cf0afe160b15ff8c0ba71f538d71.tar.gz |
MFC r272405:
Call uma_zfree() outside of lock, and improve comment.
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/fs/autofs/autofs.c | 4 |
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); } /* |