diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2012-11-20 15:45:48 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2012-11-20 15:45:48 +0000 |
commit | daee0f0b0b8735a8759afb3dc28103b3985ae449 (patch) | |
tree | b24cae06a4562ff22b2b4e8f97209cb2d95759eb | |
parent | b7c8d2f2f5dddd09417a9b202865aa43b86ab4ef (diff) |
Notes
-rw-r--r-- | sys/kern/uipc_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 99bca99b70132..c60b177582f2d 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -131,7 +131,7 @@ static const struct sockaddr sun_noname = { sizeof(sun_noname), AF_LOCAL }; * reentrance in the UNIX domain socket, file descriptor, and socket layer * code. See unp_gc() for a full description. */ -static struct task unp_gc_task; +static struct timeout_task unp_gc_task; /* * The close of unix domain sockets attached as SCM_RIGHTS is @@ -672,7 +672,7 @@ uipc_detach(struct socket *so) if (vp) vrele(vp); if (local_unp_rights) - taskqueue_enqueue(taskqueue_thread, &unp_gc_task); + taskqueue_enqueue_timeout(taskqueue_thread, &unp_gc_task, -1); } static int @@ -1784,7 +1784,7 @@ unp_init(void) LIST_INIT(&unp_shead); LIST_INIT(&unp_sphead); SLIST_INIT(&unp_defers); - TASK_INIT(&unp_gc_task, 0, unp_gc, NULL); + TIMEOUT_TASK_INIT(taskqueue_thread, &unp_gc_task, 0, unp_gc, NULL); TASK_INIT(&unp_defer_task, 0, unp_process_defers, NULL); UNP_LINK_LOCK_INIT(); UNP_LIST_LOCK_INIT(); |