mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* test4: loop deadlock
@ 2003-09-05  9:17 Fruhwirth Clemens
  0 siblings, 0 replies; only message in thread
From: Fruhwirth Clemens @ 2003-09-05  9:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andries.Brouwer

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Block-backed loop devices can cause a deadlock.

How to reproduce:

You need ~100mb partition.
Boot with mem=32m (otherwise the cache will be to big in the most cases) 

swapoff -a
losetup /dev/loop0 /dev/hdXX
for i in `seq 1 10`; do
 dd if=/dev/zero of=/dev/loop0 &
done

Now the box "should" freeze. This doesn't happen with filebased read/write
or blockbased read. Jari's loop survives this stress test without problems.
So probably we should continue with merging his loop changes. Andries, are
you still interested in that?

(As long term solution for the indisputable ugliness of loop.c: just throw
away block-backend support and move the cryptostuff to device mapper:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105967481007242&w=2 
The patch is working great, btw, much more stable than loop+cryptoloop.
I'd really like to see it merged)

Regards, Clemens

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-05  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05  9:17 test4: loop deadlock Fruhwirth Clemens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®