Re: [PATCH] remove useless highmem bounce from loop/cryptoloop

From: Andrew Morton
Date: Thu Oct 30 2003 - 16:29:27 EST


Jari Ruusu <jariruusu@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Ben Slusky wrote:
> > The attached patch changes the loop device transfer functions (including
> > cryptoloop transfers) to accept page/offset pairs instead of virtual
> > addresses, and removes the redundant kmaps in do_lo_send, do_lo_receive,
> > and loop_transfer_bio. Per Andrew Morton's request a while back.
>
> Cryptoloop is not the only user of loop transfer interface. Please don't
> change that interface as it breaks code outside of mainline kernel.

We really should not retain ugly interfaces in the mainline kernel because
some external, unmerged piece of code relies on the old interfaces. That
way lies madness.

Especially as that external code has, I think, remained unmerged for years,
and there appears to be no momentum moving it forwards.

We *have* to get the mainline codebase up-to-date with current kernel
idioms and working as well as possible. If you want to submit sane-sized
and documented patches to help us get there then sheesh, go wild. But
please do not try to stop the rest of us.

> Cryptoapi interface is quite broken. Your change extends that breakage to
> loop transfer interface. Please don't do that.

Please describe this breakage.


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.

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?


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/