Skip to content

Commit a93f8c3

Browse files
author
Gao Xiang
committed
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>
1 parent a4b1fab commit a93f8c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/erofs/zdata.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,8 +1288,8 @@ static void z_erofs_submit_and_unzip(struct super_block *sb,
12881288
return;
12891289

12901290
/* wait until all bios are completed */
1291-
wait_event(io[JQ_SUBMIT].u.wait,
1292-
!atomic_read(&io[JQ_SUBMIT].pending_bios));
1291+
io_wait_event(io[JQ_SUBMIT].u.wait,
1292+
!atomic_read(&io[JQ_SUBMIT].pending_bios));
12931293

12941294
/* let's synchronous decompression */
12951295
z_erofs_vle_unzip_all(&io[JQ_SUBMIT], pagepool);

0 commit comments

Comments
 (0)