[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191008125616.183715-5-gaoxiang25@huawei.com>
Date: Tue, 8 Oct 2019 20:56:16 +0800
From: Gao Xiang <gaoxiang25@...wei.com>
To: Chao Yu <yuchao0@...wei.com>, <linux-erofs@...ts.ozlabs.org>
CC: LKML <linux-kernel@...r.kernel.org>, Miao Xie <miaoxie@...wei.com>,
"Li Guifu" <bluce.liguifu@...wei.com>,
Gao Xiang <gaoxiang25@...wei.com>
Subject: [PATCH for-next 5/5] erofs: set iowait for sync decompression
For those tasks waiting I/O for sync decompression,
they should be better marked as IO wait state.
Signed-off-by: Gao Xiang <gaoxiang25@...wei.com>
---
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 878449f11665..be3c79421dba 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -1282,8 +1282,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);
--
2.17.1
Powered by blists - more mailing lists