diff options
| author | Andy Whitcroft <apw@canonical.com> | 2011-01-06 13:42:23 -0500 |
|---|---|---|
| committer | Leann Ogasawara <leann.ogasawara@canonical.com> | 2011-08-30 13:15:23 -0400 |
| commit | bb33c799db9bfe284ea288c463f1bb5b99da8cfa (patch) | |
| tree | 422f11f39b41227ef061cd181f9268c9f9d5524a /include | |
| parent | a264fd1c0a53e4efa0a4ae8702e5a705794222e9 (diff) | |
UBUNTU: SAUCE: ensure root is ready before running usermodehelpers in it
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/init.h | 2 | ||||
| -rw-r--r-- | include/linux/kmod.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 47235b8436f..1d34396d4be 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
| @@ -223,8 +223,6 @@ extern int initcall_debug; | |||
| 223 | static initcall_t __initcall_##fn \ | 223 | static initcall_t __initcall_##fn \ |
| 224 | __used __section(.security_initcall.init) = fn | 224 | __used __section(.security_initcall.init) = fn |
| 225 | 225 | ||
| 226 | extern struct list_head populate_rootfs_domain; | ||
| 227 | |||
| 228 | struct obs_kernel_param { | 226 | struct obs_kernel_param { |
| 229 | const char *str; | 227 | const char *str; |
| 230 | int (*setup_func)(char *); | 228 | int (*setup_func)(char *); |
diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 0da38cf7db7..8a02da82aa9 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h | |||
| @@ -84,6 +84,8 @@ int call_usermodehelper_exec(struct subprocess_info *info, enum umh_wait wait); | |||
| 84 | to call call_usermodehelper_exec */ | 84 | to call call_usermodehelper_exec */ |
| 85 | void call_usermodehelper_freeinfo(struct subprocess_info *info); | 85 | void call_usermodehelper_freeinfo(struct subprocess_info *info); |
| 86 | 86 | ||
| 87 | extern void populate_rootfs_wait(void); | ||
| 88 | |||
| 87 | static inline int | 89 | static inline int |
| 88 | call_usermodehelper_fns(char *path, char **argv, char **envp, | 90 | call_usermodehelper_fns(char *path, char **argv, char **envp, |
| 89 | enum umh_wait wait, | 91 | enum umh_wait wait, |
| @@ -93,6 +95,8 @@ call_usermodehelper_fns(char *path, char **argv, char **envp, | |||
| 93 | struct subprocess_info *info; | 95 | struct subprocess_info *info; |
| 94 | gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; | 96 | gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; |
| 95 | 97 | ||
| 98 | populate_rootfs_wait(); | ||
| 99 | |||
| 96 | info = call_usermodehelper_setup(path, argv, envp, gfp_mask); | 100 | info = call_usermodehelper_setup(path, argv, envp, gfp_mask); |
| 97 | 101 | ||
| 98 | if (info == NULL) | 102 | if (info == NULL) |
