Hello,

Now that IPL_MPFLOOR is available on all platforms we can use it. The
first user is the f_mtx mutex in kern_descrip. Rev 1.160 initialized it
using IPL_VM, we can now use the more appropriate IPL_MPFLOOR value as
already done in the MI mutex implementation for the exact same reason.


diff --git kern/kern_descrip.c kern/kern_descrip.c
index 746626bb5f0..591c85a866e 100644
--- kern/kern_descrip.c
+++ kern/kern_descrip.c
@@ -962,7 +962,7 @@ restart:
         * We need to block interrupts as long as `f_mtx' is being taken
         * with and without the KERNEL_LOCK().
         */
-       mtx_init(&fp->f_mtx, IPL_VM);
+       mtx_init(&fp->f_mtx, IPL_MPFLOOR);
        fp->f_iflags = FIF_LARVAL;
        if ((fq = p->p_fd->fd_ofiles[0]) != NULL) {
                LIST_INSERT_AFTER(fq, fp, f_list);

Reply via email to