mirror of
https://github.com/schoebel/mars
synced 2025-02-25 17:10:36 +00:00
copy: safeguard any re-triggered writes
This commit is contained in:
parent
c9f1854f3c
commit
b555ba5d81
@ -679,6 +679,11 @@ restart:
|
||||
progress = -EINTR;
|
||||
break;
|
||||
}
|
||||
/* Wait until any previous writeouts have finished.
|
||||
*/
|
||||
if (READ_ONCE(st->active[1])) {
|
||||
goto idle;
|
||||
}
|
||||
/* start writeout */
|
||||
status = _make_mref(brick, index, 1, mref0->ref_data,
|
||||
pos, pos + mref0->ref_len,
|
||||
|
Loading…
Reference in New Issue
Block a user