From 6583918059a1b0bac0ad776c06eeae4a7887fdab Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 15 Jun 2020 10:18:51 +0200 Subject: fs: Warn when filesystem operations are called from a poller Filesystem operations possibly call into arbitrary devices, so shouldn't be used from a poller. This patch sprinkles some WARN_ONCE() when this happens. One exception is when the file which is accessed is on ramfs which doesn't have any dependencies to devices. Signed-off-by: Sascha Hauer --- common/poller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/poller.c') diff --git a/common/poller.c b/common/poller.c index 7b1b92714c..50c518697b 100644 --- a/common/poller.c +++ b/common/poller.c @@ -16,7 +16,7 @@ #include static LIST_HEAD(poller_list); -static int poller_active; +int poller_active; int poller_register(struct poller_struct *poller, const char *name) { -- cgit v1.2.3