X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Foom_kill.c;h=d348b9035955e5a0ba91af683880ac0e41996fd0;hb=1064e944d03eb7a72c0fa11236d5e69cfd877a71;hp=5ec8da12cfd986523bb1968ffa9f2ea0be064868;hpb=c324b44c34050cf2a9b58830e11c974806bd85d8;p=linux-2.6 diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 5ec8da12cf..d348b90359 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -263,7 +263,7 @@ static struct mm_struct *oom_kill_process(struct task_struct *p) * OR try to be smart about which process to kill. Note that we * don't have to be perfect here, we just have to be good. */ -void out_of_memory(unsigned int __nocast gfp_mask, int order) +void out_of_memory(gfp_t gfp_mask, int order) { struct mm_struct *mm = NULL; task_t * p; @@ -300,6 +300,5 @@ retry: * Give "p" a good chance of killing itself before we * retry to allocate memory. */ - __set_current_state(TASK_INTERRUPTIBLE); - schedule_timeout(1); + schedule_timeout_interruptible(1); }