[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.128.2.8 and 1.128.2.9

version 1.128.2.8, 2007/09/09 23:17:14 version 1.128.2.9, 2007/09/10 11:13:17
Line 1578  pool_reclaim(struct pool *pp)
Line 1578  pool_reclaim(struct pool *pp)
                 (*pp->pr_drain_hook)(pp->pr_drain_hook_arg, PR_NOWAIT);                  (*pp->pr_drain_hook)(pp->pr_drain_hook_arg, PR_NOWAIT);
         }          }
   
           /* Reclaim items from the pool's cache (if any). */
           if (pp->pr_cache != NULL)
                   pool_cache_invalidate(pp->pr_cache);
   
         if (mutex_tryenter(&pp->pr_lock) == 0)          if (mutex_tryenter(&pp->pr_lock) == 0)
                 return (0);                  return (0);
         pr_enter(pp, file, line);          pr_enter(pp, file, line);
   
         LIST_INIT(&pq);          LIST_INIT(&pq);
   
         /*  
          * Reclaim items from the pool's caches.  
          */  
         if (pp->pr_cache != NULL)  
                 pool_cache_invalidate(pp->pr_cache);  
   
         getmicrotime(&curtime);          getmicrotime(&curtime);
   
         for (ph = LIST_FIRST(&pp->pr_emptypages); ph != NULL; ph = phnext) {          for (ph = LIST_FIRST(&pp->pr_emptypages); ph != NULL; ph = phnext) {

Legend:
Removed from v.1.128.2.8  
changed lines
  Added in v.1.128.2.9

CVSweb <webmaster@jp.NetBSD.org>