From patchwork Tue Dec 8 03:19:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rusty Russell X-Patchwork-Id: 40553 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 82B41B7B63 for ; Tue, 8 Dec 2009 14:20:03 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935098AbZLHDTv (ORCPT ); Mon, 7 Dec 2009 22:19:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935085AbZLHDTv (ORCPT ); Mon, 7 Dec 2009 22:19:51 -0500 Received: from ozlabs.org ([203.10.76.45]:55047 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935021AbZLHDTu (ORCPT ); Mon, 7 Dec 2009 22:19:50 -0500 Received: from vivaldi.localnet (unknown [150.101.102.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id A6625B7BD1; Tue, 8 Dec 2009 14:19:56 +1100 (EST) To: netdev@vger.kernel.org From: Rusty Russell Message-Id: <200912081349.54715.rusty@rustcorp.com.au> Date: Tue, 8 Dec 2009 13:49:54 +1030 Subject: [PATCH 2/3] mm: export use_mm/unuse_mm to modules Cc: Andrea Arcangeli , "Michael S. Tsirkin" Cc: "Michael S. Tsirkin" MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: "Michael S. Tsirkin" vhost net module wants to do copy to/from user from a kernel thread, which needs use_mm. Export it to modules. Acked-by: Andrea Arcangeli Signed-off-by: "Michael S. Tsirkin" Signed-off-by: Rusty Russell --- mm/mmu_context.c | 3 +++ 1 file changed, 3 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/mm/mmu_context.c b/mm/mmu_context.c index ded9081..0777654 100644 --- a/mm/mmu_context.c +++ b/mm/mmu_context.c @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -37,6 +38,7 @@ void use_mm(struct mm_struct *mm) if (active_mm != mm) mmdrop(active_mm); } +EXPORT_SYMBOL_GPL(use_mm); /* * unuse_mm @@ -56,3 +58,4 @@ void unuse_mm(struct mm_struct *mm) enter_lazy_tlb(mm, tsk); task_unlock(tsk); } +EXPORT_SYMBOL_GPL(unuse_mm);