From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756726Ab0DACKI (ORCPT ); Wed, 31 Mar 2010 22:10:08 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:51933 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756406Ab0DACKF (ORCPT ); Wed, 31 Mar 2010 22:10:05 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Linus Torvalds Subject: Re: [PATCH] proc: pagemap: Hold mmap_sem during page walk Cc: kosaki.motohiro@jp.fujitsu.com, Matt Mackall , San Mehat , linux-kernel@vger.kernel.org, Brian Swetland , Dave Hansen , Andrew Morton In-Reply-To: References: <1270071636.3552.978.camel@calx> Message-Id: <20100401104625.12C6.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Thu, 1 Apr 2010 11:10:01 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > So there is a very real reason for that pattern existing. It's just that > that reason has nothing to do with locking the thing into the page tables. > That is absolutely NOT guaranteed by the get_user_pages() physical page > pinning (munmap() is an extreme example of this, but I think swapout will > clear it too in try_to_unmap_one(). Right. To increment page->count only affect vmscan to prevent free page. Not prevent pageout I/O nor page unmapping from a process. Thanks.