diff options
author | Xie Yongji <xieyongji@bytedance.com> | 2021-08-31 18:36:23 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-09-06 07:20:56 -0400 |
commit | 7a6b92d33ab166c6ea6e5764033ca99dcb6ec361 (patch) | |
tree | d3622aa20f71ea1b65c7f4b22613020876f54097 /fs | |
parent | a93a962669cdbe56bb0bcd88156f0f1598f31c88 (diff) |
eventfd: Export eventfd_wake_count to modules
Export eventfd_wake_count so that some modules can use
the eventfd_signal_count() to check whether the
eventfd_signal() call should be deferred to a safe context.
NB(mst): this patch is not needed in Linus tree since there
eventfd_signal_count() has been superseded by an already exported
eventfd_signal_allowed().
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: https://lore.kernel.org/r/20210831103634.33-3-xieyongji@bytedance.com
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/eventfd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/eventfd.c b/fs/eventfd.c index e265b6dd4f34..1b3130b8d6c1 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -26,6 +26,7 @@ #include <linux/uio.h> DEFINE_PER_CPU(int, eventfd_wake_count); +EXPORT_PER_CPU_SYMBOL_GPL(eventfd_wake_count); static DEFINE_IDA(eventfd_ida); |