]> git.proxmox.com Git - mirror_zfs.git/commit
Allow QAT to handle non page-aligned buffers
authorTom Caputi <tcaputi@datto.com>
Fri, 16 Mar 2018 23:02:49 +0000 (19:02 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 16 Mar 2018 23:02:49 +0000 (16:02 -0700)
commit17dd88352e655afe1d09e8e75ca1415e79c3510a
tree1e416aea3385187c3593621b01ef602f07a2496d
parentcec3a0a1bb08574260a9e39301a24ce79dbfb69a
Allow QAT to handle non page-aligned buffers

This patch adds some handling to the QAT acceleration functions
that allows them to handle buffers that are not aligned with the
page cache. At the moment this never happens since callers only
happen to work with page-aligned buffers, but this code should
prevent headaches if this isn't always true in the future. This
patch also adds some cleanups to align the QAT compression code
with the encryption and checksumming code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Weigang Li <weigang.li@intel.com>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #7305
module/zfs/qat_compress.c
module/zfs/qat_crypt.c