erofs: use workqueue decompression for atomic contexts only
authorHuang Jianan <huangjianan@oppo.com>
Wed, 17 Mar 2021 03:54:47 +0000 (11:54 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Mon, 29 Mar 2021 02:18:00 +0000 (10:18 +0800)
commit648f2de053a882c87c05f0060f47d3b11841fdbe
treee3e9cde207e24544f3d27d51c631ab82928477f0
parentb4892fa3e7fd69e78a82356de45b90758589cafc
erofs: use workqueue decompression for atomic contexts only

z_erofs_decompressqueue_endio may not be executed in the atomic
context, for example, when dm-verity is turned on. In this scenario,
data can be decompressed directly to get rid of additional kworker
scheduling overhead.

Link: https://lore.kernel.org/r/20210317035448.13921-2-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/zdata.c