Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751785AbZKYG11 (ORCPT ); Wed, 25 Nov 2009 01:27:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751343AbZKYG10 (ORCPT ); Wed, 25 Nov 2009 01:27:26 -0500 Received: from nwd2mail10.analog.com ([137.71.25.55]:19995 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbZKYG10 (ORCPT ); Wed, 25 Nov 2009 01:27:26 -0500 X-IronPort-AV: E=Sophos;i="4.47,284,1257138000"; d="scan'208";a="7930961" Message-ID: <4B0CCE4A.5000602@analog.com> Date: Wed, 25 Nov 2009 14:27:22 +0800 From: Jie Zhang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091125 Shredder/3.0 MIME-Version: 1.0 To: Jamie Lokier CC: uClinux development list , David Howells , David McCullough , Greg Ungerer , Paul Mundt , uclinux-dist-devel@blackfin.uclinux.org, linux-kernel@vger.kernel.org Subject: Re: [uClinux-dev] [PATCH] NOMMU: use copy_*_user_page() in access_process_vm() References: <1259128503-28276-1-git-send-email-vapier@gentoo.org> <20091125061640.GB17203@shareable.org> In-Reply-To: <20091125061640.GB17203@shareable.org> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Nov 2009 06:27:22.0211 (UTC) FILETIME=[58953330:01CA6D98] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 27 On 11/25/2009 02:16 PM, Jamie Lokier wrote: > Mike Frysinger wrote: >> From: Jie Zhang >> >> The mmu code uses the copy_*_user_page() variants in access_process_vm() >> rather than copy_*_user() as the former includes an icache flush. This is >> important when doing things like setting software breakpoints with gdb. >> So switch the nommu code over to do the same. > > Reasonable, but it's a bit subtle don't you think? > How about a one-line comment saying why it's using copy_*_user_page()? > > (If it was called copy_*_user_flush_icache() I wouldn't say anything, > but it isn't). > But I think it's well known in Linux kernel developers that copy_to_user_page and copy_from_user_page should do cache flushing. It's documented in Documentation/cachetlb.txt. I don't think it's necessary to replicate it here. Jie -- 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/