mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Slusky <sluskyb@paranoiacs.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Jari Ruusu <jariruusu@users.sourceforge.net>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] remove useless highmem bounce from loop/cryptoloop
Date: Thu, 30 Oct 2003 19:52:49 -0500	[thread overview]
Message-ID: <20031031005246.GE12147@fukurou.paranoiacs.org> (raw)
In-Reply-To: <20031030133000.6a04febf.akpm@osdl.org>

On Thu, 30 Oct 2003 13:30:00 -0800, Andrew Morton wrote:
> Ben, I confess that I'd forgotten about #1198.  I'll take a look at your
> memory allocation fix - it seems to be unfortunately large, but we may need
> to go that way.

The current memory allocation procedure really is inadequate. It worked
ok up thru 2.4 because the loop device was used almost exclusively
as a nifty hack to make an initrd or to double-check the ISO you just
created. Throw strong crypto into the mix and it becomes reasonable to
have your laptop mount all its filesystems and swap off of loop devices.

> One question is: why do we go down a different code path for blockdevs
> nowadays anyway?  The handoff to the loop thread seems to work OK for
> file-backed loop, and providing a bmap() for blockdevs is easy enough?

The code path for file-backed loop handles one page at a time, as that's
the limit of the FS interface. Block-backed loop devices can throw
huge bios at their backing device with one make_request. If we could
get both working on the same code path, would that be worth hobbling
block-backed loop?

-- 
Ben Slusky                      | If you're not part of the
sluskyb@paranoiacs.org          | solution, there's good money
sluskyb@stwing.org              | to be made in prolonging the
PGP keyID ADA44B3B              | problem.      www.despair.com

  reply	other threads:[~2003-10-31  0:52 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-30 13:41 Ben Slusky
2003-10-30 18:14 ` Jari Ruusu
2003-10-30 21:30   ` Andrew Morton
2003-10-31  0:52     ` Ben Slusky [this message]
2003-10-31  9:55       ` Andrew Morton
2003-10-31  9:55         ` Andrew Morton
2003-10-31  9:58           ` Andrew Morton
2003-11-13  3:06             ` Ben Slusky
2003-11-01  0:26         ` Ben Slusky
2003-11-02 20:46           ` Ben Slusky
2003-12-21 19:55             ` [PATCH] loop.c patches, take two Ben Slusky
2003-12-21 20:07               ` Ben Slusky
2003-12-21 20:49               ` Mika Penttilä
2003-12-21 21:12                 ` Ben Slusky
2003-12-21 23:00                   ` Mika Penttilä
2003-12-21 23:05                     ` Ben Slusky
2003-12-21 23:51                       ` Mika Penttilä
2003-12-21 22:01                 ` Christophe Saout
2003-12-22  6:33               ` Andrew Morton
2003-12-22 23:32               ` Ben Slusky
2003-10-31 12:15     ` [PATCH] remove useless highmem bounce from loop/cryptoloop Jari Ruusu
2003-10-31 13:02       ` Jens Axboe

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=20031031005246.GE12147@fukurou.paranoiacs.org \
    --to=sluskyb@paranoiacs.org \
    --cc=akpm@osdl.org \
    --cc=jariruusu@users.sourceforge.net \
    --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®