aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor/winpthread.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 19:44:09 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 19:56:59 +0200
commit2ff34144df4ce521bfb789a61e24a05aea39b220 (patch)
tree54c7c1818d758de90e4c34c8f9b9c39ea301824b /lib/sqfs/block_processor/winpthread.c
parent577aae140e05f2b7cd140926443517260c0132b7 (diff)
Block processor: Add a raw block submission function
This function allows submission of raw blocks to the block processor, completely bypassing the file API. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/winpthread.c')
-rw-r--r--lib/sqfs/block_processor/winpthread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/winpthread.c b/lib/sqfs/block_processor/winpthread.c
index 44c62f1..afd66c1 100644
--- a/lib/sqfs/block_processor/winpthread.c
+++ b/lib/sqfs/block_processor/winpthread.c
@@ -344,7 +344,8 @@ static int append_to_work_queue(sqfs_block_processor_t *proc,
SIGNAL_ALL(&thproc->queue_cond);
}
} else {
- if (!(blk->flags & SQFS_BLK_FRAGMENT_BLOCK))
+ if (!(blk->flags & SQFS_BLK_FRAGMENT_BLOCK) ||
+ blk->flags & BLK_FLAG_MANUAL_SUBMISSION)
blk->io_seq_num = thproc->io_enq_id++;
store_io_block(thproc, blk);
}