diff options
Diffstat (limited to 'mm/memory.c')
| -rw-r--r-- | mm/memory.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index effd60665ab..a3646c281a0 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -70,6 +70,7 @@ #include <asm/pgtable.h> #include "internal.h" +#include "../kernel/sched/sched.h" #ifdef LAST_NID_NOT_IN_PAGE_FLAGS #warning Unfortunate NUMA and NUMA Balancing config, growing page-frame for last_nid. @@ -4195,12 +4196,16 @@ int access_process_vm(struct task_struct *tsk, unsigned long addr, struct mm_struct *mm; int ret; + skip_cfs_throttle(1); mm = get_task_mm(tsk); - if (!mm) + if (!mm) { + skip_cfs_throttle(0); return 0; + } ret = __access_remote_vm(tsk, mm, addr, buf, len, write); mmput(mm); + skip_cfs_throttle(0); return ret; } |
