kernel - Remove unused process_exit and process_exec eventhandlers
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 23:26:46 +0000 (15:26 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 23:26:46 +0000 (15:26 -0800)
* Remove these two eventhandlers.  They are not used in DragonFly.

* Fixes an unnecessary global lock bottleneck in exec and exit.

Suggested-by: Mateusz Guzik (mjg_)
sys/kern/imgact_elf.c
sys/kern/kern_exit.c
sys/sys/eventhandler.h

index 8455ab4..67b1153 100644 (file)
@@ -826,7 +826,6 @@ __CONCAT(exec_,__elfN(imgact))(struct image_params *imgp)
        imgp->entry_addr = entry;
 
        imgp->proc->p_sysent = brand_info->sysvec;
-       EVENTHANDLER_INVOKE(process_exec, imgp);
 
        if (interp != NULL) {
                int have_interp = FALSE;
index 8cd0107..0b90496 100644 (file)
@@ -349,7 +349,6 @@ exit1(int rv)
         * XXX what if one of these generates an error?
         */
        p->p_xstat = rv;
-       EVENTHANDLER_INVOKE(process_exit, p);
 
        /*
         * XXX: imho, the eventhandler stuff is much cleaner than this.
index d03e88c..a88e220 100644 (file)
@@ -181,8 +181,6 @@ typedef void (*exit_list_fn)(void *, struct proc *);
 EVENTHANDLER_DECLARE(shutdown_pre_sync, shutdown_fn);  /* before fs sync */
 EVENTHANDLER_DECLARE(shutdown_post_sync, shutdown_fn); /* after fs sync */
 EVENTHANDLER_DECLARE(shutdown_final, shutdown_fn);
-EVENTHANDLER_DECLARE(process_exec, execlist_fn);
-EVENTHANDLER_DECLARE(process_exit, exit_list_fn);
 
 #endif /* _KERNEL || _KERNEL_STRUCTURES */
 #endif /* !_SYS_EVENTHANDLER_H_ */