From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbYJXF3c (ORCPT ); Fri, 24 Oct 2008 01:29:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750784AbYJXF3W (ORCPT ); Fri, 24 Oct 2008 01:29:22 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:34428 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbYJXF3W (ORCPT ); Fri, 24 Oct 2008 01:29:22 -0400 From: KOSAKI Motohiro To: Nick Piggin Subject: Re: [RFC][PATCH] lru_add_drain_all() don't use schedule_on_each_cpu() Cc: kosaki.motohiro@jp.fujitsu.com, Heiko Carstens , linux-kernel@vger.kernel.org, Hugh Dickins , Andrew Morton , Linus Torvalds , Rik van Riel , Lee Schermerhorn , linux-mm@kvack.org, Christoph Lameter In-Reply-To: <20081024045547.GA24555@wotan.suse.de> References: <20081024135149.9C46.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20081024045547.GA24555@wotan.suse.de> Message-Id: <20081024140723.9C49.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Date: Fri, 24 Oct 2008 14:29:18 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > I don't see a better way to solve it, other than avoiding lru_add_drain_all > > > > Well, > > > > Unfortunately, lru_add_drain_all is also used some other VM place > > (page migration and memory hotplug). > > and page migration's usage is the same of this mlock usage. > > (1. grab mmap_sem 2. call lru_add_drain_all) > > > > Then, change mlock usage isn't solution ;-) > > No, not mlock alone. Ah, I see. It seems difficult but valuable. I'll think this way for a while. Thanks.