mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 19:37:06 -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
|
|
@ -105,15 +105,6 @@ struct snapraid_worker {
|
|||
* Which buffer base index should be used for destination.
|
||||
*/
|
||||
unsigned buffer_skew;
|
||||
|
||||
/**
|
||||
* Last chunk we accessed.
|
||||
*
|
||||
* It's used to optimize access of sequential blocks.
|
||||
* We cannot use the one in ::disk because it's used
|
||||
* by the main thread.
|
||||
*/
|
||||
struct snapraid_chunk* fs_last;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue