From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753749AbZIQFkh (ORCPT ); Thu, 17 Sep 2009 01:40:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752963AbZIQFkh (ORCPT ); Thu, 17 Sep 2009 01:40:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29257 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbZIQFkg (ORCPT ); Thu, 17 Sep 2009 01:40:36 -0400 Date: Thu, 17 Sep 2009 08:38:18 +0300 From: "Michael S. Tsirkin" To: Andrew Morton Cc: netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@elte.hu, linux-mm@kvack.org, hpa@zytor.com, aarcange@redhat.com Subject: Re: [PATCHv2 1/2] mm: export use_mm/unuse_mm to modules Message-ID: <20090917053817.GB6770@redhat.com> References: <20090811212752.GB26309@redhat.com> <20090811151010.c9c56955.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090811151010.c9c56955.akpm@linux-foundation.org> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On Tue, Aug 11, 2009 at 03:10:10PM -0700, Andrew Morton wrote: > On Wed, 12 Aug 2009 00:27:52 +0300 > "Michael S. Tsirkin" wrote: > > > vhost net module wants to do copy to/from user from a kernel thread, > > which needs use_mm (like what fs/aio has). Move that into mm/ and > > export to modules. > > OK by me. Please include this change in the virtio patchset. Which I > shall cheerfully not be looking at :) The virtio patches are somewhat delayed as we are ironing out the kernel/user interface with Rusty. Can the patch moving use_mm to mm/ be applied without exporting to modules for now? This will make it easier for virtio which will only have to patch in the EXPORT line. I also have a small patch optimizing atomic usage in use_mm (which I did for virtio) and it's easier to apply it if the code is in the new place. If ok, pls let me know and I'll post the patch without the EXPORT line. -- MST