Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 222872
b: refs/heads/master
c: a0b0f58
h: refs/heads/master
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Dec 2, 2010
1 parent 0672422 commit 6ab030c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 20d6c96b5f1cad5c5da4641945ec17a1d9a1afc8
refs/heads/master: a0b0f58cdd32ab363a600a294ddaa90f0c32de8c
7 changes: 6 additions & 1 deletion trunk/mm/ksm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,8 +1724,13 @@ static int ksm_memory_callback(struct notifier_block *self,
/*
* Keep it very simple for now: just lock out ksmd and
* MADV_UNMERGEABLE while any memory is going offline.
* mutex_lock_nested() is necessary because lockdep was alarmed
* that here we take ksm_thread_mutex inside notifier chain
* mutex, and later take notifier chain mutex inside
* ksm_thread_mutex to unlock it. But that's safe because both
* are inside mem_hotplug_mutex.
*/
mutex_lock(&ksm_thread_mutex);
mutex_lock_nested(&ksm_thread_mutex, SINGLE_DEPTH_NESTING);
break;

case MEM_OFFLINE:
Expand Down

0 comments on commit 6ab030c

Please sign in to comment.