erofs-utils: lib: get rid of pthread_cancel() for workqueue
authorGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 11 Dec 2024 02:50:09 +0000 (10:50 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 11 Dec 2024 08:02:56 +0000 (16:02 +0800)
commitc4facdc1977dd0e6fb8b40ee8be75f66bc79a54e
tree59833c5e2f5e97319a2afe8aa226a0e6bad30811
parent485b31785f89064760e45fc964a083b957a3e53f
erofs-utils: lib: get rid of pthread_cancel() for workqueue

Since bionic (Android's libc) does not have pthread_cancel(),
call erofs_destroy_workqueue() when initialization fails.

Reviewed-by: Yifan Zhao <zhaoyifan@sjtu.edu.cn>
Cc: Kelvin Zhang <zhangkelvin@google.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20241211025009.3393476-1-hsiangkao@linux.alibaba.com
lib/compress.c
lib/workqueue.c