Skip to content

Commit 7a6b92d

Browse files
YongjiXiemstsirkin
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Jason Wang <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent a93a962 commit 7a6b92d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/eventfd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/uio.h>
2727

2828
DEFINE_PER_CPU(int, eventfd_wake_count);
29+
EXPORT_PER_CPU_SYMBOL_GPL(eventfd_wake_count);
2930

3031
static DEFINE_IDA(eventfd_ida);
3132

0 commit comments

Comments
 (0)