mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Add mutex protection at the filesystem structure
In sync we need to modify the filesystem, like to call fs_deallocate(). We need then proper protection. This also removes the need of multiple fs_last cached value.
This commit is contained in:
parent
74204a42d7
commit
cbf2040b89
8 changed files with 117 additions and 91 deletions
|
|
@ -53,7 +53,6 @@ void io_init(struct snapraid_io* io, struct snapraid_state* state, unsigned buff
|
|||
struct snapraid_worker* worker = &io->worker_map[i];
|
||||
|
||||
worker->io = io;
|
||||
worker->fs_last = 0;
|
||||
|
||||
if (i < handle_max) {
|
||||
worker->handle = &handle_map[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue