Subject: [PATCH] mm: export use_mm/unuse_mm to modules
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.
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
On Mon, Aug 10, 2009 at
vhost net module wants to do copy to/from user from a kernel thread,
which needs switch_mm (like what fs/aio has).
export cpu_tlbstate to make this possible
Signed-off-by: Michael S. Tsirkin m...@redhat.com
---
arch/x86/mm/tlb.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff
On 08/10/2009 03:06 PM, Michael S. Tsirkin wrote:
Wouldn't it be a *lot* better to move use_mm() from fs/aio.c into common
code, and export that instead?
That's easy too. What would a good place for it be?
Somewhere in mm/, presumably. When in doubt, make it a new file...