Re: 2.3.99-pre9: oops from nfsd

From: David S. Miller (davem@redhat.com)
Date: Wed May 24 2000 - 15:00:23 EST


Yes I know, my fault. I sent Linus the fix already, here it is:

diff -u --recursive --new-file --exclude=CVS --exclude=.cvsignore vanilla/linux/fs/nfsd/nfscache.c linux/fs/nfsd/nfscache.c
--- vanilla/linux/fs/nfsd/nfscache.c Mon May 22 09:50:55 2000
+++ linux/fs/nfsd/nfscache.c Mon May 22 22:27:29 2000
@@ -98,6 +98,8 @@
 nfsd_cache_shutdown(void)
 {
         struct svc_cacherep *rp;
+ size_t i;
+ unsigned long order;
 
         if (!cache_initialized)
                 return;
@@ -110,7 +112,10 @@
         cache_initialized = 0;
         cache_disabled = 1;
 
- kfree (nfscache);
+ i = CACHESIZE * sizeof (struct svc_cacherep);
+ for (order = 0; (PAGE_SIZE << order) < i; order++)
+ ;
+ free_pages ((unsigned long)nfscache, order);
         nfscache = NULL;
         kfree (hash_list);
         hash_list = NULL;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:12 EST