summaryrefslogtreecommitdiff
path: root/lib/sqfs/blk_proc/serial.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-24 01:55:08 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-24 01:55:08 +0200
commit87d577a66eb3b1aaca91c4841445cccaf151ee81 (patch)
treea18d674c9949bc75db584218ab2fa227a2f2b752 /lib/sqfs/blk_proc/serial.c
parent824423a9d2395514101cb837c2ede5473cf106ce (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.c4
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)