mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fruhwirth Clemens <clemens-dated-1063617464.b162@endorphin.org>
To: linux-kernel@vger.kernel.org
Cc: Andries.Brouwer@cwi.nl
Subject: test4: loop deadlock
Date: Fri, 5 Sep 2003 11:17:44 +0200	[thread overview]
Message-ID: <20030905091744.GA2320@leto2.endorphin.org> (raw)

[-- 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 --]

                 reply	other threads:[~2003-09-05  9:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030905091744.GA2320@leto2.endorphin.org \
    --to=clemens-dated-1063617464.b162@endorphin.org \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®