From 034f1b331e2c152e8e8954d715fa9a84f7b48d64 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 18 Dec 2012 17:02:27 -0800 Subject: Fix spl_kmem_init_kallsyms_lookup() panic Due to I/O buffering the helper may return successfully before the proc handler has a chance to execute. To catch this case wait up to 1 second to verify spl_kallsyms_lookup_name_fn was updated to a non SYMBOL_POISON value. Signed-off-by: Brian Behlendorf Closes zfsonlinux/zfs#699 Closes zfsonlinux/zfs#859 --- include/linux/kallsyms_compat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/kallsyms_compat.h') diff --git a/include/linux/kallsyms_compat.h b/include/linux/kallsyms_compat.h index 34c45ea3a..fbe33e8e6 100644 --- a/include/linux/kallsyms_compat.h +++ b/include/linux/kallsyms_compat.h @@ -34,6 +34,7 @@ #else +extern wait_queue_head_t spl_kallsyms_lookup_name_waitq; typedef unsigned long (*kallsyms_lookup_name_t)(const char *); extern kallsyms_lookup_name_t spl_kallsyms_lookup_name_fn; #define spl_kallsyms_lookup_name(name) spl_kallsyms_lookup_name_fn(name) -- cgit v1.2.3