by smtp.nexlab.net (Postfix) with ESMTP id 8548EFB7D for <[email protected]>; Tue, 24 May 2005 10:01:50 +0200 (CEST)
Received: ([email protected]) by vger.kernel.org via listexpand
id S261306AbVEXCV1 (ORCPT <rfc822;[email protected]>); Mon, 23 May 2005 22:21:27 -0400
Received: ([email protected]) by vger.kernel.org id S261309AbVEXCV1
(ORCPT <rfc822;linux-kernel-outgoing>); Mon, 23 May 2005 22:21:27 -0400
Received: from arnor.apana.org.au ([203.14.152.115]:39434 "EHLO
arnor.apana.org.au") by vger.kernel.org with ESMTP id S261306AbVEXCVX (ORCPT <rfc822;[email protected]>); Mon, 23 May 2005 22:21:23 -0400
Received: from gondolin.me.apana.org.au ([192.168.0.6] ident=mail)
by arnor.apana.org.au with esmtp (Exim 3.35 #1 (Debian)) id 1DaP2b-0002ec-00; Tue, 24 May 2005 12:21:09 +1000
Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.36 #1 (Debian))
id 1DaP2Y-0007Zp-00; Tue, 24 May 2005 12:21:06 +1000
Date: Tue, 24 May 2005 12:21:06 +1000
To: Andrew Morton <[email protected]>
Cc: Linux Kernel Mailing List <[email protected]>,
[email protected],
"David S. Miller" <[email protected]>, James Morris <[email protected]>
Subject: Re: [CRYPTO]: Only reschedule if !in_atomic()
Message-ID: <[email protected]>
References: <[email protected]> <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.9i
From: Herbert Xu <[email protected]>
Sender: [email protected]
Precedence: bulk
X-Mailing-List: [email protected]
Quoted 8 lines · Andrew Morton
This code can cause deadlocks on
CONFIG_SMP&& !CONFIG_PREEMPT kernels.Please see http://lkml.org/lkml/2005/3/10/358
You (the programmer) *have* to know what context you're running in before doing a voluntary yield. There is simply no way to work this out at runtime.
You're right.
Perhaps we should code this into the crypto API instead? For instance, we can have a tfm flag that says whether we can sleep or not.
Dave & James, What do you think?
Cheers,
Signature · 9 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/