diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 876b31cd822d..a28d11e10877 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -250,8 +250,9 @@ static inline int dup_mmap(struct mm_struct * mm, struct mm_struct * oldmm) | |||
250 | 250 | ||
251 | /* | 251 | /* |
252 | * Link in the new vma and copy the page table entries: | 252 | * Link in the new vma and copy the page table entries: |
253 | * link in first so that swapoff can see swap entries, | 253 | * link in first so that swapoff can see swap entries. |
254 | * and try_to_unmap_one's find_vma find the new vma. | 254 | * Note that, exceptionally, here the vma is inserted |
255 | * without holding mm->mmap_sem. | ||
255 | */ | 256 | */ |
256 | spin_lock(&mm->page_table_lock); | 257 | spin_lock(&mm->page_table_lock); |
257 | *pprev = tmp; | 258 | *pprev = tmp; |