Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47395
b: refs/heads/master
c: 7c5cae3
h: refs/heads/master
i:
  47393: 886daf7
  47391: 83692d7
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Feb 11, 2007
1 parent 4daf3f3 commit 2af3a15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c8cc2c10c21943dd3499a2df7aac835093b37f3
refs/heads/master: 7c5cae368a6c44eac0e817ae130301b65ff446dc
15 changes: 7 additions & 8 deletions trunk/mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -4029,18 +4029,17 @@ void drain_array(struct kmem_cache *cachep, struct kmem_list3 *l3,
* If we cannot acquire the cache chain mutex then just give up - we'll try
* again on the next iteration.
*/
static void cache_reap(struct work_struct *unused)
static void cache_reap(struct work_struct *w)
{
struct kmem_cache *searchp;
struct kmem_list3 *l3;
int node = numa_node_id();
struct delayed_work *work =
container_of(w, struct delayed_work, work);

if (!mutex_trylock(&cache_chain_mutex)) {
if (!mutex_trylock(&cache_chain_mutex))
/* Give up. Setup the next iteration. */
schedule_delayed_work(&__get_cpu_var(reap_work),
round_jiffies_relative(REAPTIMEOUT_CPUC));
return;
}
goto out;

list_for_each_entry(searchp, &cache_chain, next) {
check_irq_on();
Expand Down Expand Up @@ -4083,9 +4082,9 @@ static void cache_reap(struct work_struct *unused)
mutex_unlock(&cache_chain_mutex);
next_reap_node();
refresh_cpu_vm_stats(smp_processor_id());
out:
/* Set up the next iteration */
schedule_delayed_work(&__get_cpu_var(reap_work),
round_jiffies_relative(REAPTIMEOUT_CPUC));
schedule_delayed_work(work, round_jiffies_relative(REAPTIMEOUT_CPUC));
}

#ifdef CONFIG_PROC_FS
Expand Down

0 comments on commit 2af3a15

Please sign in to comment.