lkml.org 
[lkml]   [2000]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patchlet] minor mm/slab.c cleanup (2.4.0-t8)
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(rasmus@jaquet.dk)
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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.020 / U:1.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site