Whamcloud - gitweb
EX-9889 csdc: Fix the next available algorithm selection
authorArtem Blagodarenko <ablagodarenko@ddn.com>
Wed, 12 Jun 2024 13:54:18 +0000 (14:54 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 19 Jun 2024 05:38:20 +0000 (05:38 +0000)
commit8651317d3500d7fb4e45c1d24ff64b4a4c4e3720
treef4d688b0d1bfff457de2217cbed8ff20d56037c8
parent2c63648d9eed5b3cc788db3b4587301d089028fd
EX-9889 csdc: Fix the next available algorithm selection

Currently, if a chosen algorithm is not available, then
next preferable is chosen, but an error code is not cleared
so __alloc_compr() returns this wrong code. Data if
written uncompressed while it can be compressed with
next appropriate algorithm.

This patch adds this error code clearing. Test is
provided.

Test-Parameters: trivial testlist=sanity-compr env=ONLY=1015,ONLY_REPEAT=10
Signed-off-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Fixes: 67794c381440 ("EX-7601 obd: move type switching to alloc_compr callers")
Change-Id: I59f65058a0fe9b108de3d4ba7cf5950f18e32204
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55426
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/lustre_compr.c
lustre/tests/sanity-compr.sh
lustre/tests/test-framework.sh