Remove assertion in udv_detach(), the function is already mpsafe.
authormpi <mpi@openbsd.org>
Wed, 24 Jul 2024 12:15:55 +0000 (12:15 +0000)
committermpi <mpi@openbsd.org>
Wed, 24 Jul 2024 12:15:55 +0000 (12:15 +0000)
ok jca@, claudio@

sys/uvm/uvm_device.c

index 74d9490..10288d7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: uvm_device.c,v 1.66 2021/12/15 12:53:53 mpi Exp $     */
+/*     $OpenBSD: uvm_device.c,v 1.67 2024/07/24 12:15:55 mpi Exp $     */
 /*     $NetBSD: uvm_device.c,v 1.30 2000/11/25 06:27:59 chs Exp $      */
 
 /*
@@ -245,8 +245,6 @@ udv_detach(struct uvm_object *uobj)
 {
        struct uvm_device *udv = (struct uvm_device *)uobj;
 
-       KERNEL_ASSERT_LOCKED();
-
        /*
         * loop until done
         */