From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757575AbYFSAZq (ORCPT ); Wed, 18 Jun 2008 20:25:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756453AbYFSAZh (ORCPT ); Wed, 18 Jun 2008 20:25:37 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:55386 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755788AbYFSAZg (ORCPT ); Wed, 18 Jun 2008 20:25:36 -0400 Date: Wed, 18 Jun 2008 17:24:30 -0700 (PDT) From: Linus Torvalds To: Jeremy Fitzhardinge cc: benh@kernel.crashing.org, xen-devel , Peter Zijlstra , kvm-devel , x86@kernel.org, LKML , Virtualization Mailing List , Hugh Dickins , Ingo Molnar , Thomas Gleixner Subject: Re: [PATCH 1 of 4] mm: add a ptep_modify_prot transaction abstraction In-Reply-To: <4859A528.1010107@goop.org> Message-ID: References: <1213831403.8011.24.camel@pasglop> <4859A149.9090004@goop.org> <4859A528.1010107@goop.org> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Jun 2008, Jeremy Fitzhardinge wrote: > > Along the lines of: Hell no. There's a reason we have a special set_wrprotect() thing. We can do it more efficiently on native hardware by just clearing the bit atomically. No need to do the cmpxchg games. Linus