Re: [PATCHv2 1/2] mm: export use_mm/unuse_mm to modules

2009-09-16 Thread Andrew Morton
On Thu, 17 Sep 2009 08:38:18 +0300 "Michael S. Tsirkin" wrote: > 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, > >

Re: [PATCHv2 1/2] mm: export use_mm/unuse_mm to modules

2009-09-16 Thread Michael S. Tsirkin
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

[PATCHv2 1/2] mm: export use_mm/unuse_mm to modules

2009-08-11 Thread Michael S. Tsirkin
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 --- fs/aio.c| 47 +-- include/linux/mmu_context.h |

Re: [PATCHv2 1/2] mm: export use_mm/unuse_mm to modules

2009-08-11 Thread Andrew Morton
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 s