From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755088AbaCMS16 (ORCPT ); Thu, 13 Mar 2014 14:27:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35529 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755060AbaCMS14 (ORCPT ); Thu, 13 Mar 2014 14:27:56 -0400 Date: Thu, 13 Mar 2014 19:27:02 +0100 From: Oleg Nesterov To: Linus Torvalds , Gleb Natapov Cc: Linux Kernel Mailing List , Peter Zijlstra , Davidlohr Bueso , Davidlohr Bueso , KOSAKI Motohiro , Rik van Riel , Mel Gorman , Andrew Morton , Michel Lespinasse , Ingo Molnar Subject: async_pf.c && use_mm() (Was: mm,vmacache: also flush cache for VM_CLONE) Message-ID: <20140313182702.GA3429@redhat.com> References: <20140308194405.GA32403@redhat.com> <20140309125710.GA1829@redhat.com> <20140309170909.GA13335@redhat.com> <1394481375.3867.1.camel@buesod1.americas.hpqcorp.net> <20140313145941.GA26215@redhat.com> <20140313163632.GA30737@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140313163632.GA30737@redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/13, Oleg Nesterov wrote: > > Hmm, but at first glance async_pf_execute() doesn't need use_mm() at all. Seriously, why it nees use_mm? get_user_pages(mm => apf->mm) should work. Perhaps there is some kvm magic ? But actually I am writing this email because mmdrop() doesn't look right or I missed something. I think that kvm_setup_async_pf() should increment ->mm_users and async_pf_execute() needs mmput() ? Oleg.