From: John Garry Date: Mon, 16 Sep 2024 16:53:39 +0000 (+0000) Subject: os-linux: Define RWF_ATOMIC X-Git-Tag: fio-3.38~16^2~8 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=5ba34480dc222db47d7813009eb95a7543790dd3;p=fio.git os-linux: Define RWF_ATOMIC Add a definition of RWF_ATOMIC when not available from uapi headers. RWF_ATOMIC is going to be part of Linux v6.11 Signed-off-by: John Garry Link: https://lore.kernel.org/r/20240916165347.2226763-2-john.g.garry@oracle.com Signed-off-by: Jens Axboe --- diff --git a/os/os-linux.h b/os/os-linux.h index 4d150311..010a8291 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -328,6 +328,10 @@ static inline int fio_set_sched_idle(void) #define RWF_NOWAIT 0x00000008 #endif +#ifndef RWF_ATOMIC +#define RWF_ATOMIC 0x00000040 +#endif + #ifndef RWF_WRITE_LIFE_SHIFT #define RWF_WRITE_LIFE_SHIFT 4 #define RWF_WRITE_LIFE_SHORT (1 << RWF_WRITE_LIFE_SHIFT)