From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261923AbTJDHDL (ORCPT ); Sat, 4 Oct 2003 03:03:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261928AbTJDHDL (ORCPT ); Sat, 4 Oct 2003 03:03:11 -0400 Received: from zero.aec.at ([193.170.194.10]:7181 "EHLO zero.aec.at") by vger.kernel.org with ESMTP id S261923AbTJDHDK (ORCPT ); Sat, 4 Oct 2003 03:03:10 -0400 To: Joe Korty Cc: linux-kernel@vger.kernel.org Subject: Re: mlockall and mmap of IO devices don't mix From: Andi Kleen Date: Sat, 04 Oct 2003 09:02:59 +0200 In-Reply-To: (Joe Korty's message of "Fri, 03 Oct 2003 23:50:19 +0200") Message-ID: User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i586-suse-linux) References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Joe Korty writes: > > I do not believe that the above constitutes a correct fix. The > problem is that follow_pages() is fundamentally not able to handle a > mapping which does not have a 'struct page' backing it up, and a > mapping to IO memory by definition has no 'struct page' structure to > back it up. The 2.4 vm scanner handles this by always checking VALID_PAGE(). Maybe follow_pages() should do that too? -Andi