From fe851dcc3bbd1f2c2f3b19c019a35763a6851a16 Mon Sep 17 00:00:00 2001 From: Gao Xiang Date: Tue, 8 Oct 2019 20:56:16 +0800 Subject: [PATCH] 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 Change-Id: I6922f7e3201b5d69642167c882f5580fb4d11a03 Signed-off-by: Gao Xiang --- fs/erofs/zdata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index 0a5e68595b0f..9ff60fa37d58 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1289,8 +1289,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);