HomeFreeBSD

Bug fix in qat_compress.c when compressed size is < 4KB

Description

Bug fix in qat_compress.c when compressed size is < 4KB

When the 128KB block is compressed to less than 4KB, the pointer
to the Footer is not in the end of the compressed buffer, that's
because the Header offset was added twice for this case. So there
is a gap between the Footer and the compressed buffer.

  1. Always compute the Footer pointer address from the start of the

last page.

  1. Remove the un-used workaroud code which has been verified fixed

with the latest driver and this fix.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Weigang Li <weigang.li@intel.com>
Closes #6827

Details

Provenance
wli5 <weigang.li@intel.com>Authored on Nov 7 2017, 10:51 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 7 2017, 10:51 PM
Parents
rG681957fe2efc: Sort output of tunables in arc_summary.py
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGa3df7fa79d7d: Bug fix in qat_compress.c when compressed size is < 4KB (authored by wli5 <weigang.li@intel.com>).Nov 7 2017, 10:51 PM