patch-1.3.94 linux/mm/page_io.c
Next file: linux/net/ipv4/ip_masq.c
Previous file: linux/mm/memory.c
Back to the patch index
Back to the overall index
-  Lines: 12
 -  Date:
Mon Apr 22 08:43:45 1996
 -  Orig file: 
v1.3.93/linux/mm/page_io.c
 -  Orig date: 
Wed Apr 17 09:06:33 1996
 
diff -u --recursive --new-file v1.3.93/linux/mm/page_io.c linux/mm/page_io.c
@@ -67,8 +67,10 @@
 		return;
 	}
 	/* Make sure we are the only process doing I/O with this swap page. */
-	while (set_bit(offset,p->swap_lockmap))
+	while (set_bit(offset,p->swap_lockmap)) {
+		run_task_queue(&tq_disk);
 		sleep_on(&lock_queue);
+	}
 	if (rw == READ)
 		kstat.pswpin++;
 	else
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