[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[086/127] nommu: yield CPU while disposing VM
    2.6.32-stable review patch.  If anyone has any objections, please let us know.


    From: Steven J. Magnani <>

    commit 04c3496152394d17e3bc2316f9731ee3e8a026bc upstream.

    Depending on processor speed, page size, and the amount of memory a
    process is allowed to amass, cleanup of a large VM may freeze the system
    for many seconds. This can result in a watchdog timeout.

    Make sure other tasks receive some service when cleaning up large VMs.

    Signed-off-by: Steven J. Magnani <>
    Cc: Greg Ungerer <>
    Reviewed-by: KOSAKI Motohiro <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>

    mm/nommu.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/mm/nommu.c
    +++ b/mm/nommu.c
    @@ -1615,6 +1615,7 @@ void exit_mmap(struct mm_struct *mm)
    mm->mmap = vma->vm_next;
    delete_vma(mm, vma);
    + cond_resched();


     \ /
      Last update: 2010-12-08 01:59    [W:0.019 / U:0.668 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site