fix ordering of device.valid.store in device_destroy

This commit is contained in:
teoxoy 2024-09-06 16:16:24 +02:00 committed by Teodor Tanasoaia
parent eb47449eb9
commit 480abae331

View File

@ -2293,7 +2293,7 @@ impl Global {
// check for empty queues and a DeviceLostClosure. At that time,
// the DeviceLostClosure will be called with "destroyed" as the
// reason.
device.valid.store(false, Ordering::Relaxed);
device.valid.store(false, Ordering::Release);
}
}