>> + lock_kernel();
>> + insert_vm_struct(mm, vma);
>> + merge_segments(mm, vma->vm_start, vma->vm_end);
>> + unlock_kernel();
>
>because we're guaranteed to merge only a segment without any inode or
>anything else, so there's no way we can do anything bad even conceptually:
>the mm semaphore should protect us quite sufficiently.
I think the same is true also for insert_vm_struct.
Andrea Arcangeli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/