mirror_zfs/module/os/linux/zfs
Brian Behlendorf b88ca2acf5
Enable SIMD for encryption
When adding the SIMD compatibility code in e5db313 the decryption of a
dataset wrapping key was left in a user thread context.  This was done
intentionally since it's a relatively infrequent operation.  However,
this also meant that the encryption context templates were initialized
using the generic operations.  Therefore, subsequent encryption and
decryption operations would use the generic implementation even when
executed by an I/O pipeline thread.

Resolve the issue by initializing the context templates in an I/O
pipeline thread.  And by updating zio_do_crypt_uio() to dispatch any
encryption operations to a pipeline thread when called from the user
context.  For example, when performing a read from the ARC.

Tested-by: Attila Fülöp <attila@fueloep.org>
Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9215
Closes #9296
2019-09-10 10:45:46 -07:00
..
abd.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
Makefile.in OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
policy.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
qat_compress.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
qat_crypt.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
qat.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
spa_stats.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
vdev_disk.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
vdev_file.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_acl.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_ctldir.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_debug.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_dir.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_sysfs.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_vfsops.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_vnops.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zfs_znode.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zio_crypt.c Enable SIMD for encryption 2019-09-10 10:45:46 -07:00
zpl_ctldir.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_export.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_file.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_inode.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_super.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00
zpl_xattr.c OpenZFS restructuring - move platform specific sources 2019-09-06 11:26:26 -07:00