Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751138AbVLLJ4M (ORCPT ); Mon, 12 Dec 2005 04:56:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751147AbVLLJ4M (ORCPT ); Mon, 12 Dec 2005 04:56:12 -0500 Received: from [194.90.237.34] ([194.90.237.34]:35529 "EHLO mtlex01.yok.mtl.com") by vger.kernel.org with ESMTP id S1751138AbVLLJ4L (ORCPT ); Mon, 12 Dec 2005 04:56:11 -0500 Date: Mon, 12 Dec 2005 11:59:10 +0200 From: "Michael S. Tsirkin" To: Nick Piggin Cc: Hugh Dickins , Gleb Natapov , Benjamin Herrenschmidt , Petr Vandrovec , Badari Pulavarty , Linux Kernel Mailing List Subject: Re: set_page_dirty vs set_page_dirty_lock Message-ID: <20051212095910.GX14936@mellanox.co.il> Reply-To: "Michael S. Tsirkin" References: <439D417E.903@yahoo.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439D417E.903@yahoo.com.au> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 24 Quoting Nick Piggin : > >>or try to do something tricky with page_count to determine > >>if we need to do a copy in fork() rather than a COW. > > > > > > I'm actually reasonably happy with the trick that I'm using: > > performing a second get_user_pages after DMA and comparing > > the page lists. > > However, doing this every time on the off chance that a > > page was made COW forces me into task context, every time. > > > > I think it might be possible to solve it with the early-copy in > fork(). I'll tinker with it. Thanks, that would help! -- MST - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/