mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-11 00:00:12 +03:00
Fix cpu_relax()
cpu_relax() is supposed to be a compiler barrier - this fixes a bug with btree_write_buffer_flush() getting stuck. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
1b2d608269
commit
c1677df62e
@ -132,8 +132,8 @@
|
|||||||
|
|
||||||
#define might_sleep()
|
#define might_sleep()
|
||||||
|
|
||||||
#define cpu_relax() do {} while (0)
|
#define cpu_relax() barrier()
|
||||||
#define cpu_relax_lowlatency() do {} while (0)
|
#define cpu_relax_lowlatency() barrier()
|
||||||
|
|
||||||
#define panic(fmt, ...) \
|
#define panic(fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user