Hi.
This is against 2.4.0-test8. It removes an unnecessary check (done
earlier) for a slab destructor (unless I am missing some black magic)
and substitutes __set_current_state for current->state=XXX.
--- linux-240test8-clean/mm/slab.c Thu Aug 24 09:43:36 2000
+++ linux/mm/slab.c Sun Sep 10 22:24:53 2000
@@ -561,8 +561,7 @@
objp += BYTES_PER_WORD;
}
#endif
- if (cachep->dtor)
- (cachep->dtor)(objp, cachep, 0);
+ (cachep->dtor)(objp, cachep, 0);
#if DEBUG
if (cachep->flags & SLAB_RED_ZONE) {
objp -= BYTES_PER_WORD;
@@ -856,10 +855,10 @@
local_irq_enable();
add_wait_queue(&cache_drain_wait, &wait);
- current->state = TASK_UNINTERRUPTIBLE;
+ __set_current_state(TASK_UNINTERRUPTIBLE);
while (slab_cache_drain_mask != 0UL)
schedule();
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
remove_wait_queue(&cache_drain_wait, &wait);
}
--
Regards,
Rasmus([EMAIL PROTECTED])
The aim of a joke is not to degrade the human being but to remind him that
he is already degraded. -- George Orwell
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/