summaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer/common.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-12 12:48:08 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-12 12:48:33 +0100
commit6d4faedcb53f54253160f1717fac609f922ae0c7 (patch)
treea082bc838a8d08df2769e1da11e600946f7354a9 /lib/sqfs/data_writer/common.c
parent40075fe0751a06c3373f53f36d44a27e79c2cca7 (diff)
Fix thread pool queue accounting
- ONLY manipulate the back log counter in the main thread. - Fix the order of operations when submitting blocks. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer/common.c')
-rw-r--r--lib/sqfs/data_writer/common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/sqfs/data_writer/common.c b/lib/sqfs/data_writer/common.c
index 5fe70ac..d316a6f 100644
--- a/lib/sqfs/data_writer/common.c
+++ b/lib/sqfs/data_writer/common.c
@@ -77,8 +77,6 @@ void data_writer_store_done(sqfs_data_writer_t *proc, sqfs_block_t *blk,
if (status != 0 && proc->status == 0)
proc->status = status;
-
- proc->backlog -= 1;
}
sqfs_block_t *data_writer_next_work_item(sqfs_data_writer_t *proc)