Re: removing the global lock from sys_brk()

Andrea Arcangeli (andrea@suse.de)
Fri, 4 Jun 1999 14:50:41 +0200 (CEST)


On Thu, 3 Jun 1999, Linus Torvalds wrote:

>> + 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/