Re: 1.3.93, loop better but still broke

Gadi Oxman (gadio@netvision.net.il)
Wed, 24 Apr 1996 05:25:13 +0400 (IDT)


On 23 Apr 1996 Ray_Van_Tassle-CRV004@email.mot.com wrote:

> In 1.3.93, loop (use a file for a filesystem) works better, but still locks
> up. Before 91, it would lock up in less than a minute.

The basic problem seems to be that we have a dependency between two block
devices, yet some resources are shared between all drivers (the unplug task
queue and the empty requests pool).

Does the following tiny patch help ? (it is not really mine - it was
introduced around 1.3.78 for MD, when it was still a block device driver).

Gadi Oxman
gadio@netvision.net.il

--- ll_rw_blk.c.old Wed Apr 24 05:08:07 1996
+++ ll_rw_blk.c Wed Apr 24 05:09:18 1996
@@ -335,6 +335,11 @@
return;
}

+#ifdef CONFIG_BLK_DEV_LOOP
+ if (major == LOOP_MAJOR)
+ max_req /= 2;
+#endif /* CONFIG_BLK_DEV_LOOP */
+
/* look for a free request. */

/*