mirror of https://github.com/schoebel/mars
copy: avoid race between run_copy() and clash
This commit is contained in:
parent
9fbaf12362
commit
d5e7798310
|
@ -932,8 +932,7 @@ int _run_copy(struct copy_brick *brick, loff_t this_start)
|
|||
int progress;
|
||||
bool is_first;
|
||||
|
||||
if (READ_ONCE(brick->clash) &&
|
||||
wait_reset_clash(brick))
|
||||
if (READ_ONCE(brick->clash))
|
||||
return 0;
|
||||
|
||||
if (this_start < brick->copy_last)
|
||||
|
|
Loading…
Reference in New Issue