From 3215679c2c87f3f40809f5eb75b5c679bcb4879d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 19 Feb 2020 15:32:47 +0100 Subject: Restructure thread pool block processor Implement the io-queue based design as outline in doc/parallelism.txt Signed-off-by: David Oberhollenzer --- lib/sqfs/block_processor/internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sqfs/block_processor/internal.h') diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index 3c6570e..fb9c4a0 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -27,7 +27,8 @@ typedef struct sqfs_block_t { struct sqfs_block_t *next; sqfs_inode_generic_t *inode; - sqfs_u32 sequence_number; + sqfs_u32 proc_seq_num; + sqfs_u32 io_seq_num; sqfs_u32 flags; sqfs_u32 size; sqfs_u32 checksum; @@ -51,6 +52,7 @@ struct sqfs_block_processor_t { sqfs_inode_generic_t *inode; sqfs_block_t *blk_current; sqfs_u32 blk_flags; + sqfs_u32 blk_index; size_t max_block_size; }; -- cgit v1.2.3