Received: by mail.netbsd.org (Postfix, from userid 605) id 2B17D14A188; Thu, 9 Jun 2011 14:41:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4CCD514A17A for ; Thu, 9 Jun 2011 14:41:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id CKGx0KfdHhp7 for ; Thu, 9 Jun 2011 14:41:24 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 9E4FB14A16B for ; Thu, 9 Jun 2011 14:41:24 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 84784175DD; Thu, 9 Jun 2011 14:41:24 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Thu, 9 Jun 2011 14:41:24 +0000 From: "Matthias Drochner" Subject: CVS commit: src/sys/opencrypto To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110609144124.84784175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Matthias Drochner" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: drochner Date: Thu Jun 9 14:41:24 UTC 2011 Modified Files: src/sys/opencrypto: crypto.c cryptodev.c cryptodev.h Log Message: -if an opencrypto(9) session is allocated, the driver is refcounted and can not disappear -- no need to hold crypto_mtx to check the driver list (the whole check is questionable) -crp->crp_cv (the condition variable) is used by userland cryptodev exclusively -- move its initialization there, no need to waste cycles of in-kernel callers -add a comment which members of "struct cryptop" are used by opencrypto(9) and which by crypto(4) (this should be split, no need to waste memory for in-kernel callers) To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/opencrypto/crypto.c cvs rdiff -u -r1.66 -r1.67 src/sys/opencrypto/cryptodev.c cvs rdiff -u -r1.24 -r1.25 src/sys/opencrypto/cryptodev.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.