summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-10 03:26:17 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-10 03:26:17 +0000
commitc4202d6d13f1f080f73b2a0dddfbc5d346bdd8c8 (patch)
treef88891d02e86050150c78f411084e2c818908afe /sys/opencrypto
parent199b1160c67b85a15ffc3ad9d2fecaad743c4f8d (diff)
downloadFreeBSD-src-c4202d6d13f1f080f73b2a0dddfbc5d346bdd8c8.zip
FreeBSD-src-c4202d6d13f1f080f73b2a0dddfbc5d346bdd8c8.tar.gz
Don't acquire Giant in cryptof_close(), as the code is intended to be
able to run MPsafe (and appears to be MPsafe). Discussed with (some time ago): sam
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/cryptodev.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/opencrypto/cryptodev.c b/sys/opencrypto/cryptodev.c
index 26b2447..9b0da7c 100644
--- a/sys/opencrypto/cryptodev.c
+++ b/sys/opencrypto/cryptodev.c
@@ -623,19 +623,12 @@ cryptof_close(struct file *fp, struct thread *td)
struct fcrypt *fcr = fp->f_data;
struct csession *cse;
- /*
- * XXXRW: The cryptodev and called code all appears to be
- * MPSAFE, but I'm not set up to test it. Acquire Giant
- * for now.
- */
- mtx_lock(&Giant);
while ((cse = TAILQ_FIRST(&fcr->csessions))) {
TAILQ_REMOVE(&fcr->csessions, cse, next);
(void)csefree(cse);
}
FREE(fcr, M_XDATA);
fp->f_data = NULL;
- mtx_unlock(&Giant);
return 0;
}
OpenPOWER on IntegriCloud