diff options
| author | Eric W. Biederman <ebiederm@xmission.com> | 2021-12-03 11:00:19 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-10 16:18:55 +0200 |
| commit | 2049935c523e16b8184f36505191eed6e6ffb6ad (patch) | |
| tree | 484eb80fbd933bf327d706b659eac427676f22df /kernel | |
| parent | dd6663096680b8cfb77b707b54fc8a04f85f1a2f (diff) | |
| download | linux-2049935c523e16b8184f36505191eed6e6ffb6ad.tar.gz linux-2049935c523e16b8184f36505191eed6e6ffb6ad.tar.bz2 linux-2049935c523e16b8184f36505191eed6e6ffb6ad.zip | |
exit: Rename module_put_and_exit to module_put_and_kthread_exit
[ Upstream commit ca3574bd653aba234a4b31955f2778947403be16 ]
Update module_put_and_exit to call kthread_exit instead of do_exit.
Change the name to reflect this change in functionality. All of the
users of module_put_and_exit are causing the current kthread to exit
so this change makes it clear what is happening. There is no
functional change.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c index 4d49c32af570..f2b8314546f1 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -337,12 +337,12 @@ static inline void add_taint_module(struct module *mod, unsigned flag, * A thread that wants to hold a reference to a module only while it * is running can call this to safely exit. nfsd and lockd use this. */ -void __noreturn __module_put_and_exit(struct module *mod, long code) +void __noreturn __module_put_and_kthread_exit(struct module *mod, long code) { module_put(mod); - do_exit(code); + kthread_exit(code); } -EXPORT_SYMBOL(__module_put_and_exit); +EXPORT_SYMBOL(__module_put_and_kthread_exit); /* Find a module section: 0 means not found. */ static unsigned int find_sec(const struct load_info *info, const char *name) |
