]> git.pld-linux.org Git - packages/kernel.git/blob - ide_o1_sched_fix.patch
- added description of djurban's branch
[packages/kernel.git] / ide_o1_sched_fix.patch
1 diff -Nur linux.org/drivers/ide/ataraid.c linux/drivers/ide/ataraid.c
2 --- linux.org/drivers/ide/ataraid.c     Thu Oct 25 22:58:35 2001
3 +++ linux/drivers/ide/ataraid.c Thu Jul 18 14:24:33 2002
4 @@ -123,7 +123,8 @@
5                 ptr=kmalloc(sizeof(struct buffer_head),GFP_NOIO);
6                 if (!ptr) {
7                         __set_current_state(TASK_RUNNING);
8 +                       current->policy |= SCHED_YIELD;
9 +                       schedule();             
10 -                       yield();
11                 }
12         }
13         return ptr;
14 @@ -139,7 +138,8 @@
15                 ptr=kmalloc(sizeof(struct ataraid_bh_private),GFP_NOIO);
16                 if (!ptr) {
17                         __set_current_state(TASK_RUNNING);
18 +                       current->policy |= SCHED_YIELD;
19 +                       schedule();             
20 -                       yield();
21                 }
22         }
23         return ptr;
This page took 0.074589 seconds and 3 git commands to generate.