[PATCH 2/3] revoke: fix shared mapping revoke

2007-03-16 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> As pointed out by Nick Piggin, modifying vma->vm_flags without ->mmap_sem can corrupt the flags. This changes revoke_mapping() to use down_write_trylock() to acquire ->mmap_sem and then rescan vmas of the parent mm. Also make sure we restart scanning in re

[PATCH 2/3] revoke: fix shared mapping revoke

2007-03-15 Thread Pekka J Enberg
From: Pekka Enberg <[EMAIL PROTECTED]> On 3/16/07, Andrew Morton <[EMAIL PROTECTED]> wrote: > This all looks very strange. If the calling process expires its timeslice, > the entire system call fails? This changes revoke_mapping() to restart after cond_resched() to fix an obvious goof made by me