mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Protect rate limiter state updates with a mutex to prevent data races
This commit is contained in:
parent
b4a694bb10
commit
eebb3943e5
4 changed files with 34 additions and 1 deletions
|
|
@ -1138,6 +1138,8 @@ void io_done(struct snapraid_io* io)
|
|||
free(io->writer_map);
|
||||
free(io->writer_list);
|
||||
|
||||
bw_done(&io->bw);
|
||||
|
||||
#if HAVE_THREAD
|
||||
if (io->io_max > 1) {
|
||||
thread_mutex_destroy(&io->io_mutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue