Skip to contentSkip to conversation

cpuset: remove cpuset_unlock()

PATCH In review Lai Jiangshan 2 participants 2 messages Jan 4, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpuset: remove cpuset_unlock()

It is not used.
It is not declared.
There is no corresponding cpuset_lock().

---

kernel/cpuset.c +0 -11
index 4349935..6ef90dd 100644
@@ -2440,17 +2440,6 @@ int __cpuset_node_allowed_hardwall(int node, gfp_t gfp_mask)
 }
 
 /**
- * cpuset_unlock - release lock on cpuset changes
- *
- * Undo the lock taken in a previous cpuset_lock() call.
- */
-
-void cpuset_unlock(void)
-{
-	mutex_unlock(&callback_mutex);
-}
-
-/**
  * cpuset_mem_spread_node() - On which node to begin search for a file page
  * cpuset_slab_spread_node() - On which node to begin search for a slab page
  *
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Lai Jiangshan

It is not used.
It is not declared.
There is no corresponding cpuset_lock().

Thanks,
Paul

Quoted 24 lines

---

kernel/cpuset.c +0 -11
index 4349935..6ef90dd 100644
@@ -2440,17 +2440,6 @@ int __cpuset_node_allowed_hardwall(int node, gfp_t gfp_mask)
  }
 
  /**
- * cpuset_unlock - release lock on cpuset changes
- *
- * Undo the lock taken in a previous cpuset_lock() call.
- */
-
-void cpuset_unlock(void)
-{
-       mutex_unlock(&callback_mutex);
-}
-
-/**
  * cpuset_mem_spread_node() - On which node to begin search for a file page
  * cpuset_slab_spread_node() - On which node to begin search for a slab page
  *