diff --git a/homework/src/list_set/optimistic_fine_grained.rs b/homework/src/list_set/optimistic_fine_grained.rs index 9ca9b0ec36..0375aeb9d9 100644 --- a/homework/src/list_set/optimistic_fine_grained.rs +++ b/homework/src/list_set/optimistic_fine_grained.rs @@ -57,7 +57,7 @@ impl OptimisticFineGrainedListSet { fn head<'g>(&'g self, guard: &'g Guard) -> Cursor<'g, T> { let prev = unsafe { self.head.read_lock() }; - let curr = prev.load(Ordering::Relaxed, guard); + let curr = prev.load(Ordering::SeqCst, guard); Cursor { prev, curr } } }