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>