Re: Change in functionality of futex() system call.

From: KOSAKI Motohiro
Date: Thu Jun 09 2011 - 23:27:19 EST


(2011/06/09 21:05), Peter Zijlstra wrote:
> On Thu, 2011-06-09 at 20:37 +0900, KOSAKI Motohiro wrote:
>> 1) check the pte of the target address is RW attribute.
>> 2-1) if yes, it has no COW chance. we can safely use gup result.
>> 2-2) if no, we have to fallback slow vma walk. maybe, it's okey.
>> both RO mappings and COW are rare situation.
>
> Not so, clean file pages are RO, even if the vma is writable. We use the
> fault to track dirty state with.

Right you are. Sigh. Please forget my previous mail.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/