Whamcloud - gitweb
EX-9878 csdc: is_chunk_start should return header copy
authorArtem Blagodarenko <ablagodarenko@ddn.com>
Mon, 3 Jun 2024 10:57:33 +0000 (06:57 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 6 Jun 2024 08:20:04 +0000 (08:20 +0000)
commit55b8bf48dabf6107695d2ce224b4265d1b900930
treec1f2fca19ad3d37f2699ef6bc3791aa56725da24
parentf57a008044db262f95c2f6c13abafbd7c215bfdf
EX-9878 csdc: is_chunk_start should return header copy

In is_chunk_start()

*ret_header = header;
...
kunmap_atomic(header);

ret_header is used after is_chunk_start(). The header
copy should be returned from is_chunk_start() for safe work.

Test-Parameters: testlist=sanity-compr
Signed-off-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Change-Id: Ib5e828d6b61e90dcd70c28589931a4490cf19c22
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55292
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lustre_compr.h
lustre/obdclass/lustre_compr.c
lustre/ofd/ofd_compress.c
lustre/osc/osc_compress.c