diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 01:55:08 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 01:55:08 +0200 |
commit | 87d577a66eb3b1aaca91c4841445cccaf151ee81 (patch) | |
tree | a18d674c9949bc75db584218ab2fa227a2f2b752 /lib/sqfs/blk_proc/serial.c | |
parent | 824423a9d2395514101cb837c2ede5473cf106ce (diff) |
Process completed blocks one-by-one
This commit makes sure the block processor enqueue function dequeues
at most a single block which it dispatches.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/blk_proc/serial.c')
-rw-r--r-- | lib/sqfs/blk_proc/serial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqfs/blk_proc/serial.c b/lib/sqfs/blk_proc/serial.c index 8e842fb..850c33d 100644 --- a/lib/sqfs/blk_proc/serial.c +++ b/lib/sqfs/blk_proc/serial.c @@ -68,7 +68,9 @@ int sqfs_block_processor_enqueue(sqfs_block_processor_t *proc, } block->next = NULL; - return process_completed_blocks(proc, block); + proc->status = process_completed_block(proc, block); + free(block); + return proc->status; } int sqfs_block_processor_finish(sqfs_block_processor_t *proc) |