Re: encrypted swap on loop in 2.4.10-pre12?

From: Jens Axboe (axboe@suse.de)
Date: Thu Sep 20 2001 - 07:25:55 EST


On Thu, Sep 20 2001, Jari Ruusu wrote:
> Jens Axboe wrote:
> > On Thu, Sep 20 2001, Jari Ruusu wrote:
> > > Cryptoapi can't be used to encrypt swap. It has nasties like sleeping in
> > > make_request_fn() and potential memory allocation deadlock.
> >
> > sleeping in make_request_fn is not a nasty in itself, btw. in fact loop
> > just needs an emergency page pool for swap to be perfectly safe.
>
> loop-AES provides emergency page pool for device backed loop. Take a look.

Then sleeping in make_request_fn is not a nasty at all. In fact the
kernel does it all the time anyways.

-- 
Jens Axboe

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



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:37 EST