freebsd-dev/sys/opencrypto
Robert Watson 1c1ce9253f Push acquisition of Giant from fdrop_closed() into fo_close() so that
individual file object implementations can optionally acquire Giant if
they require it:

- soo_close(): depends on debug.mpsafenet
- pipe_close(): Giant not acquired
- kqueue_close(): Giant required
- vn_close(): Giant required
- cryptof_close(): Giant required (conservative)

Notes:

  Giant is still acquired in close() even when closing MPSAFE objects
  due to kqueue requiring Giant in the calling closef() code.
  Microbenchmarks indicate that this removal of Giant cuts 3%-3% off
  of pipe create/destroy pairs from user space with SMP compiled into
  the kernel.

  The cryptodev and opencrypto code appears MPSAFE, but I'm unable to
  test it extensively and so have left Giant over fo_close().  It can
  probably be removed given some testing and review.
2004-07-22 18:35:43 +00:00
..
cast.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
cast.h
castsb.h
criov.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
crypto_if.m
crypto.c add missing #include <sys/module.h> 2004-05-30 20:27:19 +00:00
cryptodev.c Push acquisition of Giant from fdrop_closed() into fo_close() so that 2004-07-22 18:35:43 +00:00
cryptodev.h Add CRD_F_KEY_EXPLICIT which allows the key to be changed per 2004-02-02 17:06:34 +00:00
cryptosoft.c Add CRD_F_KEY_EXPLICIT which allows the key to be changed per 2004-02-02 17:06:34 +00:00
cryptosoft.h
deflate.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
deflate.h
rijndael.c Do not aggressively unroll the AES implementation, in non-benchmarking use 2004-02-04 08:44:10 +00:00
rijndael.h
rmd160.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
rmd160.h
skipjack.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
skipjack.h
xform.c Use __FBSDID(). 2003-06-11 05:57:50 +00:00
xform.h