Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/mach Use PR_WAITOK instead of M_WAITOK for pool_g...



details:   https://anonhg.NetBSD.org/src/rev/5f578f100d11
branches:  trunk
changeset: 559834:5f578f100d11
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Mar 24 16:55:07 2004 +0000

description:
Use PR_WAITOK instead of M_WAITOK for pool_get().  This is polite,
since M_WAITOK happens to be PR_NOWAIT.

diffstat:

 sys/compat/mach/mach_message.c |  6 +++---
 sys/compat/mach/mach_port.c    |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r b4ba5f01c30e -r 5f578f100d11 sys/compat/mach/mach_message.c
--- a/sys/compat/mach/mach_message.c    Wed Mar 24 16:46:27 2004 +0000
+++ b/sys/compat/mach/mach_message.c    Wed Mar 24 16:55:07 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_message.c,v 1.43 2004/01/02 02:09:52 manu Exp $ */
+/*     $NetBSD: mach_message.c,v 1.44 2004/03/24 16:55:07 pooka Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.43 2004/01/02 02:09:52 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.44 2004/03/24 16:55:07 pooka Exp $");
 
 #include "opt_ktrace.h"
 #include "opt_compat_mach.h" /* For COMPAT_MACH in <sys/ktrace.h> */
@@ -1178,7 +1178,7 @@
 {
        struct mach_message *mm;
 
-       mm = (struct mach_message *)pool_get(&mach_message_pool, M_WAITOK);
+       mm = (struct mach_message *)pool_get(&mach_message_pool, PR_WAITOK);
        bzero(mm, sizeof(*mm));
        mm->mm_msg = msgh;
        mm->mm_size = size;
diff -r b4ba5f01c30e -r 5f578f100d11 sys/compat/mach/mach_port.c
--- a/sys/compat/mach/mach_port.c       Wed Mar 24 16:46:27 2004 +0000
+++ b/sys/compat/mach/mach_port.c       Wed Mar 24 16:55:07 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_port.c,v 1.51 2004/01/01 22:48:54 manu Exp $ */
+/*     $NetBSD: mach_port.c,v 1.52 2004/03/24 16:55:07 pooka Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include "opt_compat_darwin.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.51 2004/01/01 22:48:54 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_port.c,v 1.52 2004/03/24 16:55:07 pooka Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -614,7 +614,7 @@
 {
        struct mach_port *mp;
 
-       mp = (struct mach_port *)pool_get(&mach_port_pool, M_WAITOK);
+       mp = (struct mach_port *)pool_get(&mach_port_pool, PR_WAITOK);
        bzero(mp, sizeof(*mp));
        mp->mp_recv = NULL;
        mp->mp_count = 0;
@@ -692,7 +692,7 @@
                }
        }
        
-       mr = pool_get(&mach_right_pool, M_WAITOK);
+       mr = pool_get(&mach_right_pool, PR_WAITOK);
 
        mr->mr_port = mp;
        mr->mr_lwp = l;



Home | Main Index | Thread Index | Old Index