Skip to content

Commit

Permalink
eventfd: Export eventfd_wake_count to modules
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
YongjiXie authored and mstsirkin committed Sep 6, 2021
1 parent a93a962 commit 7a6b92d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a6b92d

Please sign in to comment.