Hi Linus,
Recently I merged Mark's sigact_cache with my fs_cache and you accepted
it. However, this contained a bug - not all allocations where switched
from generic cache to dedicated slab cache. The fix is below.
Regards,
Tigran
--- linux/fs/exec.c Mon Aug 14 08:10:58 2000
+++ work/fs/exec.c Mon Aug 14 18:09:45 2000
@@ -436,7 +436,7 @@
if (atomic_read(¤t->sig->count) <= 1)
return 0;
- newsig = kmalloc(sizeof(*newsig), GFP_KERNEL);
+ newsig = kmem_cache_alloc(sigact_cachep, GFP_KERNEL);
if (newsig == NULL)
return -ENOMEM;
spin_lock_init(&newsig->siglock);
@@ -460,7 +460,7 @@
if (current->sig == oldsig)
return;
if (atomic_dec_and_test(&oldsig->count))
- kfree(oldsig);
+ kmem_cache_free(sigact_cachep, oldsig);
}
/*
-
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 : Tue Aug 15 2000 - 21:00:36 EST