diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 22ea507811..39357617cb 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -536,7 +536,7 @@ hostid_exec(void) * '/usr/bin/hostid' and redirect the result to /proc/sys/spl/hostid * for us to use. It's a horrific solution but it will do for now. */ - rc = call_usermodehelper(argv[0], argv, envp, 1); + rc = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); if (rc) printk("SPL: Failed user helper '%s %s %s', rc = %d\n", argv[0], argv[1], argv[2], rc); @@ -607,7 +607,7 @@ set_kallsyms_lookup_name(void) NULL }; int rc; - rc = call_usermodehelper(argv[0], argv, envp, 1); + rc = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); /* * Due to I/O buffering the helper may return successfully before diff --git a/module/splat/splat-linux.c b/module/splat/splat-linux.c index 76e2398dab..0a1808f611 100644 --- a/module/splat/splat-linux.c +++ b/module/splat/splat-linux.c @@ -166,7 +166,7 @@ splat_linux_drop_slab(struct file *file) NULL }; int rc; - rc = call_usermodehelper(argv[0], argv, envp, 1); + rc = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_PROC); if (rc) splat_vprint(file, SPLAT_LINUX_TEST3_NAME, "Failed user helper '%s %s %s', rc = %d\n", diff --git a/module/splat/splat-vnode.c b/module/splat/splat-vnode.c index 7d1c75f179..a7034c1155 100644 --- a/module/splat/splat-vnode.c +++ b/module/splat/splat-vnode.c @@ -75,7 +75,7 @@ splat_vnode_user_cmd(struct file *file, void *arg, NULL }; int rc; - rc = call_usermodehelper(sh_path, argv, envp, 1); + rc = call_usermodehelper(sh_path, argv, envp, UMH_WAIT_PROC); if (rc) { splat_vprint(file, name, "Failed command: %s %s %s (%d)\n",