Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto use PR_NOWAIT.



details:   https://anonhg.NetBSD.org/src/rev/d4ea80422877
branches:  trunk
changeset: 827717:d4ea80422877
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 09 22:20:25 2017 +0000

description:
use PR_NOWAIT.

diffstat:

 sys/opencrypto/crypto.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r b27c3ed241c0 -r d4ea80422877 sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Thu Nov 09 22:16:38 2017 +0000
+++ b/sys/opencrypto/crypto.c   Thu Nov 09 22:20:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto.c,v 1.101 2017/09/22 03:04:06 knakahara Exp $ */
+/*     $NetBSD: crypto.c,v 1.102 2017/11/09 22:20:25 christos Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $   */
 /*     $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
 
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.101 2017/09/22 03:04:06 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.102 2017/11/09 22:20:25 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/reboot.h>
@@ -1655,14 +1655,14 @@
        }
        crypto_put_crp_ret_qs(curcpu());
 
-       crp = pool_cache_get(cryptop_cache, 0);
+       crp = pool_cache_get(cryptop_cache, PR_NOWAIT);
        if (crp == NULL) {
                return NULL;
        }
        memset(crp, 0, sizeof(struct cryptop));
 
        while (num--) {
-               crd = pool_cache_get(cryptodesc_cache, 0);
+               crd = pool_cache_get(cryptodesc_cache, PR_NOWAIT);
                if (crd == NULL) {
                        crypto_freereq(crp);
                        return NULL;



Home | Main Index | Thread Index | Old Index