Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
[linux-block.git] / lib / sbitmap.c
index c6e2f1f2c4d2337d109908c82e47ae02061f7229..2709ab82549978f8382f03f155bf7baa6d0d24b4 100644 (file)
@@ -631,7 +631,7 @@ EXPORT_SYMBOL_GPL(sbitmap_queue_wake_up);
 static inline void sbitmap_update_cpu_hint(struct sbitmap *sb, int cpu, int tag)
 {
        if (likely(!sb->round_robin && tag < sb->depth))
-               *per_cpu_ptr(sb->alloc_hint, cpu) = tag;
+               data_race(*per_cpu_ptr(sb->alloc_hint, cpu) = tag);
 }
 
 void sbitmap_queue_clear_batch(struct sbitmap_queue *sbq, int offset,