cpuset: remove cpuset_unlock()
PATCH 1/1 cpuset: remove cpuset_unlock()
It is not used.
It is not declared.
There is no corresponding cpuset_lock().
Signed-off-by Lai Jiangshan <[email protected]>
---
kernel/cpuset.c +0 -11
@@ -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 *
Quoted 5 lines · Lai Jiangshan
It is not used.
It is not declared.
There is no correspondingcpuset_lock().Signed-off-by Lai Jiangshan <[email protected]>
Acked-by Paul Menage <[email protected]>
Thanks,
Paul
Quoted 24 lines
---
kernel/cpuset.c +0
-11@@ -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 *