patch-1.3.85 linux/fs/buffer.c
Next file: linux/fs/exec.c
Previous file: linux/fs/Config.in
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
Mon Apr 8 10:45:00 1996
- Orig file:
v1.3.84/linux/fs/buffer.c
- Orig date:
Wed Mar 27 08:19:28 1996
diff -u --recursive --new-file v1.3.84/linux/fs/buffer.c linux/fs/buffer.c
@@ -130,6 +130,7 @@
bh->b_count++;
add_wait_queue(&bh->b_wait, &wait);
repeat:
+ run_task_queue(&tq_disk);
current->state = TASK_UNINTERRUPTIBLE;
if (buffer_locked(bh)) {
schedule();
@@ -993,6 +994,7 @@
* wait for old buffer heads to become free due to
* finishing IO..
*/
+ run_task_queue(&tq_disk);
sleep_on(&buffer_wait);
}
@@ -1817,6 +1819,7 @@
static void wakeup_bdflush(int wait)
{
+ run_task_queue(&tq_disk);
wake_up(&bdflush_wait);
if(wait) sleep_on(&bdflush_done);
}
@@ -1930,7 +1933,7 @@
return -EINVAL;
bdf_prm.data[i] = data;
return 0;
- };
+ }
/* Having func 0 used to launch the actual bdflush and then never
return (unless explicitly killed). We return zero here to
@@ -2023,6 +2026,7 @@
if (ncount) printk("sys_bdflush: %d dirty buffers not on dirty list\n", ncount);
printk("sleeping again.\n");
#endif
+ run_task_queue(&tq_disk);
wake_up(&bdflush_done);
/* If there are still a lot of dirty buffers around, skip the sleep
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this