History

Merge tag 'io_uring-5.6-2020-02-05' of git://git.kernel.dk/linux-block

Pull io_uring updates from Jens Axboe: "Some later fixes for io_uring: - Small cleanup series from Pavel - Belt and suspenders build time check of sqe size and layout (Stefan) - Addition of ->show_fdinfo() on request of Jann Horn, to aid in understanding mapped personalities - eventfd recursion/deadlock fix, for both io_uring and aio - Fixup for send/recv handling - Fixup for double deferral of read/write request - Fix for potential double completion event for close request - Adjust fadvise advice async/inline behavior - Fix for shutdown hang with SQPOLL thread - Fix for potential use-after-free of fixed file table" * tag 'io_uring-5.6-2020-02-05' of git://git.kernel.dk/linux-block: io_uring: cleanup fixed file data table references io_uring: spin for sq thread to idle on shutdown aio: prevent potential eventfd recursion on poll io_uring: put the flag changing code in the same spot io_uring: iterate req cache backwards io_uring: punt even fadvise() WILLNEED to async context io_uring: fix sporadic double CQE entry for close io_uring: remove extra ->file check io_uring: don't map read/write iovec potentially twice io_uring: use the proper helpers for io_send/recv io_uring: prevent potential eventfd recursion on poll eventfd: track eventfd_signal() recursion depth io_uring: add BUILD_BUG_ON() to assert the layout of struct io_uring_sqe io_uring: add ->show_fdinfo() for the io_uring file descriptor

Linus Torvalds committed 6 years ago

Commit c1ef57a2 parents ed535f2 2faf8524 files · +251 −52Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/eventfd.h+14−0
@@ -12,6 +12,8 @@ · 11 unmodified lines
1212 #include <linux/fcntl.h>
1313 #include <linux/wait.h>
1414 #include <linux/err.h>
15+#include <linux/percpu-defs.h>
16+#include <linux/percpu.h>
1517
1618 /*
1719 * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining
@@ -40,6 +42,13 @@ __u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n); · 22 unmodified lines
4042 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_entry_t *wait,
4143 __u64 *cnt);
4244
45+DECLARE_PER_CPU(int, eventfd_wake_count);
46+
47+static inline bool eventfd_signal_count(void)
48+{
49+ return this_cpu_read(eventfd_wake_count);
50+}
51+
4352 #else /* CONFIG_EVENTFD */
4453
4554 /*
@@ -68,6 +77,11 @@ static inline int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, · 22 unmodified lines
6877 return -ENOSYS;
6978 }
7079
80+static inline bool eventfd_signal_count(void)
81+{
82+ return false;
83+}
84+
7185 #endif
7286
7387 #endif /* _LINUX_EVENTFD_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t