Source-Changes-HG archive

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

[src/trunk]: src/sys/kern pool_cache_invalidate: comment out invalidation of ...



details:   https://anonhg.NetBSD.org/src/rev/06531e5c0674
branches:  trunk
changeset: 750997:06531e5c0674
user:      rmind <rmind%NetBSD.org@localhost>
date:      Wed Jan 20 23:40:42 2010 +0000

description:
pool_cache_invalidate: comment out invalidation of per-CPU caches (nobody depends
on it, at the moment) until we decide how to fix it (xcall(9) cannot be used from
interrupt context).  XXX: Perhaps implement XC_HIGHPRI.

diffstat:

 sys/kern/subr_pool.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 3f5d7f2ce3db -r 06531e5c0674 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Wed Jan 20 22:58:37 2010 +0000
+++ b/sys/kern/subr_pool.c      Wed Jan 20 23:40:42 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.181 2010/01/03 09:42:22 mlelstv Exp $  */
+/*     $NetBSD: subr_pool.c,v 1.182 2010/01/20 23:40:42 rmind Exp $    */
 
 /*-
  * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.181 2010/01/03 09:42:22 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.182 2010/01/20 23:40:42 rmind Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pool.h"
@@ -2315,6 +2315,7 @@
 pool_cache_invalidate(pool_cache_t pc)
 {
        pcg_t *full, *empty, *part;
+#if 0
        uint64_t where;
 
        if (ncpu < 2 || !mp_online) {
@@ -2333,7 +2334,7 @@
                where = xc_broadcast(0, (xcfunc_t)pool_cache_xcall, pc, NULL);
                xc_wait(where);
        }
-
+#endif
        mutex_enter(&pc->pc_lock);
        full = pc->pc_fullgroups;
        empty = pc->pc_emptygroups;



Home | Main Index | Thread Index | Old Index