]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: erofs: simplify `z_erofs_vle_submit_all'
authorGao Xiang <gaoxiang25@huawei.com>
Fri, 7 Dec 2018 16:19:18 +0000 (00:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Dec 2018 16:10:48 +0000 (17:10 +0100)
commit7146a4f02635fe1b0791ce818176b1cf6b3d8a85
tree21150111db99b29be9a203728450cf752b1bc0bc
parent6afd227ca179b33ca4437502ac8847df9c43aef9
staging: erofs: simplify `z_erofs_vle_submit_all'

Previously, there are too many hacked stuffs such as `__FSIO_1',
`lstgrp_noio', `lstgrp_io' out there in `z_erofs_vle_submit_all'.

Revisit the whole process by properly introducing jobqueue to
represent each type of queued workgroups, furthermore hide all of
crazyness behind independent separated functions.

After this patch, 2 independent jobqueues exist if managed cache
is enabled, or 1 jobqueue if disabled.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/unzip_vle.c