Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/subr_pool.c,v retrieving revision 1.101.2.12 retrieving revision 1.101.2.13 diff -u -p -r1.101.2.12 -r1.101.2.13 --- src/sys/kern/subr_pool.c 2008/03/17 09:15:34 1.101.2.12 +++ src/sys/kern/subr_pool.c 2008/03/24 09:39:02 1.101.2.13 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_pool.c,v 1.101.2.12 2008/03/17 09:15:34 yamt Exp $ */ +/* $NetBSD: subr_pool.c,v 1.101.2.13 2008/03/24 09:39:02 yamt Exp $ */ /*- * Copyright (c) 1997, 1999, 2000, 2002, 2007 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.101.2.12 2008/03/17 09:15:34 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.101.2.13 2008/03/24 09:39:02 yamt Exp $"); #include "opt_ddb.h" #include "opt_pool.h" @@ -995,8 +995,9 @@ pool_get(struct pool *pp, int flags) #endif /* DIAGNOSTIC */ #ifdef LOCKDEBUG - if (flags & PR_WAITOK) + if (flags & PR_WAITOK) { ASSERT_SLEEPABLE(); + } #endif mutex_enter(&pp->pr_lock); @@ -2521,8 +2522,9 @@ pool_cache_get_paddr(pool_cache_t pc, in int s; #ifdef LOCKDEBUG - if (flags & PR_WAITOK) + if (flags & PR_WAITOK) { ASSERT_SLEEPABLE(); + } #endif cc = pool_cache_cpu_enter(pc, &s);