diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-29 16:48:21 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-29 16:48:21 -0800 |
commit | ac787ffa5a246e53675ae93294420ea948600818 (patch) | |
tree | 8b67b4ecddc0125f1c6ed163c4bc79070ddac2aa /include | |
parent | 69fb073b5ba6d7c9358a04115ed61b78c73790ce (diff) | |
parent | 9eb803402a2a83400c6c6afd900e3b7c87c06816 (diff) | |
download | linux-stable-ac787ffa5a246e53675ae93294420ea948600818.tar.gz linux-stable-ac787ffa5a246e53675ae93294420ea948600818.tar.bz2 linux-stable-ac787ffa5a246e53675ae93294420ea948600818.zip |
Merge tag 'io_uring-6.2-2022-12-29' of git://git.kernel.dk/linux
Pull io_uring fixes from Jens Axboe:
- Two fixes for mutex grabbing when the task state is != TASK_RUNNING
(me)
- Check for invalid opcode in io_uring_register() a bit earlier, to
avoid going through the quiesce machinery just to return -EINVAL
later in the process (me)
- Fix for the uapi io_uring header, skipping including time_types.h
when necessary (Stefan)
* tag 'io_uring-6.2-2022-12-29' of git://git.kernel.dk/linux:
uapi:io_uring.h: allow linux/time_types.h to be skipped
io_uring: check for valid register opcode earlier
io_uring/cancel: re-grab ctx mutex after finishing wait
io_uring: finish waiting before flushing overflow entries
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/io_uring.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 9d4c4078e8d0..2780bce62faf 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -10,7 +10,15 @@ #include <linux/fs.h> #include <linux/types.h> +/* + * this file is shared with liburing and that has to autodetect + * if linux/time_types.h is available or not, it can + * define UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H + * if linux/time_types.h is not available + */ +#ifndef UAPI_LINUX_IO_URING_H_SKIP_LINUX_TIME_TYPES_H #include <linux/time_types.h> +#endif #ifdef __cplusplus extern "C" { |