erofs: use sync decompression for atomic contexts only
authorHuang Jianan <huangjianan@oppo.com>
Wed, 17 Mar 2021 03:54:48 +0000 (11:54 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 02:18:01 +0000 (10:18 +0800)
commit30048cdac4b92f39ee50e2a1344f5899f8e70cb6
tree2a1ad11c589875102c58185462148fb4276d73c2
parent648f2de053a882c87c05f0060f47d3b11841fdbe
erofs: use sync decompression for atomic contexts only

Sync decompression was introduced to get rid of additional kworker
scheduling overhead. But there is no such overhead in non-atomic
contexts. Therefore, it should be better to turn off sync decompression
to avoid the current thread waiting in z_erofs_runqueue.

Link: https://lore.kernel.org/r/20210317035448.13921-3-huangjianan@oppo.com
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/internal.h
fs/erofs/super.c
fs/erofs/zdata.c