• J
    [PATCH] Use activate_mm() in fs/aio.c:use_mm() · 90aef12e
    Jeremy Fitzhardinge 提交于
    activate_mm() is not the right thing to be using in use_mm().  It should be
    switch_mm().
    
    On normal x86, they're synonymous, but for the Xen patches I'm adding a
    hook which assumes that activate_mm is only used the first time a new mm
    is used after creation (I have another hook for dealing with dup_mm).  I
    think this use of activate_mm() is the only place where it could be used
    a second time on an mm.
    
    >From a quick look at the other architectures I think this is OK (most
    simply implement one in terms of the other), but some are doing some
    subtly different stuff between the two.
    Acked-by: NDavid Miller <davem@davemloft.net>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    90aef12e
aio.c 45.1 KB