public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cryptoapi 2.5->2.4 backport
@ 2003-06-13 10:58 Frank Cusack
  2003-06-13 15:42 ` James Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Cusack @ 2003-06-13 10:58 UTC (permalink / raw)
  To: lkml

Any problem with just changing crypto/cipher.c:

    enum km_type crypto_km_types[] = {
            KM_USER0,
            KM_USER1,
            KM_SOFTIRQ0,
            KM_SOFTIRQ1,
    };

to

    enum km_type crypto_km_types[] = {
            KM_USER0,
            KM_USER1,
            KM_USER0,
            KM_USER1,
    };

?

(or the equivalent change in crypto/internal.h)

static inline enum km_type crypto_kmap_type(int out)
{
        return crypto_km_types[(in_softirq() ? 2 : 0) + out];
}

static inline void *crypto_kmap(struct page *page, int out)
{
        return kmap_atomic(page, crypto_kmap_type(out));
}

thanks
/fc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-13 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-13 10:58 cryptoapi 2.5->2.4 backport Frank Cusack
2003-06-13 15:42 ` James Morris

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