[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.101.2.4 and 1.101.2.5

version 1.101.2.4, 2007/09/03 14:41:04 version 1.101.2.5, 2007/10/27 11:35:33
Line 1166  pool_do_put(struct pool *pp, void *v, st
Line 1166  pool_do_put(struct pool *pp, void *v, st
                 panic("pool_put: %s: page header missing", pp->pr_wchan);                  panic("pool_put: %s: page header missing", pp->pr_wchan);
         }          }
   
 #ifdef LOCKDEBUG  
         /*  
          * Check if we're freeing a locked simple lock.  
          */  
         simple_lock_freecheck(pi, (char *)pi + pp->pr_size);  
 #endif  
   
         /*          /*
          * Return to item list.           * Return to item list.
          */           */
Line 2360  pool_allocator_alloc(struct pool *pp, in
Line 2353  pool_allocator_alloc(struct pool *pp, in
         struct pool_allocator *pa = pp->pr_alloc;          struct pool_allocator *pa = pp->pr_alloc;
         void *res;          void *res;
   
         LOCK_ASSERT(!simple_lock_held(&pp->pr_slock));  
   
         res = (*pa->pa_alloc)(pp, flags);          res = (*pa->pa_alloc)(pp, flags);
         if (res == NULL && (flags & PR_WAITOK) == 0) {          if (res == NULL && (flags & PR_WAITOK) == 0) {
                 /*                  /*
Line 2382  pool_allocator_free(struct pool *pp, voi
Line 2373  pool_allocator_free(struct pool *pp, voi
 {  {
         struct pool_allocator *pa = pp->pr_alloc;          struct pool_allocator *pa = pp->pr_alloc;
   
         LOCK_ASSERT(!simple_lock_held(&pp->pr_slock));  
   
         (*pa->pa_free)(pp, v);          (*pa->pa_free)(pp, v);
 }  }
   

Legend:
Removed from v.1.101.2.4  
changed lines
  Added in v.1.101.2.5

CVSweb <webmaster@jp.NetBSD.org>