mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
Use a single scheduling point for sync
This commit is contained in:
parent
d2bad33af8
commit
541665db46
3 changed files with 56 additions and 3 deletions
|
|
@ -365,6 +365,14 @@ void io_parity_write(struct snapraid_io* io, unsigned* levcur, unsigned* waiting
|
|||
*/
|
||||
void io_write_next(struct snapraid_io* io, block_off_t blockcur, int skip, int* writer_error);
|
||||
|
||||
/**
|
||||
* Next write and read position.
|
||||
*
|
||||
* It's a combination of io_write_next() and io_read_next() that
|
||||
* locks only one time the scheduling mutex.
|
||||
*/
|
||||
block_off_t io_write_and_read_next(struct snapraid_io* io, block_off_t blockcur, int skip, int* writer_error, void*** buffer);
|
||||
|
||||
/**
|
||||
* Refresh the number of cached blocks for all data and parity disks.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue