summaryrefslogtreecommitdiff
path: root/fs/erofs
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2019-10-08 15:56:16 +0300
committerGao Xiang <gaoxiang25@huawei.com>2019-11-24 06:02:41 +0300
commita93f8c36877b2ae9ba0ca07eda1933944dc5bcb8 (patch)
tree3b371829efe27289eb8edca7b4f956ae0e371065 /fs/erofs
parenta4b1fab121ec3235e6c5f3543ae1937426bd4eb4 (diff)
downloadlinux-a93f8c36877b2ae9ba0ca07eda1933944dc5bcb8.tar.xz
erofs: set iowait for sync decompression
For those tasks waiting I/O for sync decompression, they should be better marked as IO wait state. Link: https://lore.kernel.org/r/20191008125616.183715-5-gaoxiang25@huawei.com Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Diffstat (limited to 'fs/erofs')
-rw-r--r--fs/erofs/zdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index f6056ba80424..35bf6879d3a6 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -1288,8 +1288,8 @@ static void z_erofs_submit_and_unzip(struct super_block *sb,
return;
/* wait until all bios are completed */
- wait_event(io[JQ_SUBMIT].u.wait,
- !atomic_read(&io[JQ_SUBMIT].pending_bios));
+ io_wait_event(io[JQ_SUBMIT].u.wait,
+ !atomic_read(&io[JQ_SUBMIT].pending_bios));
/* let's synchronous decompression */
z_erofs_vle_unzip_all(&io[JQ_SUBMIT], pagepool);