Skip to content

Commit

Permalink
batman-adv: Have kernel threads return instead of calling do_exit
Browse files Browse the repository at this point in the history
In 2009 Oleg reworked[1] the kernel threads so that it is not
necessary to call do_exit if you are not using kthread_stop().  Remove
the explicit calls of do_exit and complete_and_exit (with a NULL
completion) that were previously necessary.

[1] 63706172f332 ("kthreads: rework kthread_stop()")
Link: https://lkml.kernel.org/r/20211020174406.17889-12-ebiederm@xmission.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
  • Loading branch information
ebiederm authored and ecsv committed Nov 13, 2021
1 parent a4dbfc1 commit 529ea5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/tp_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ static int batadv_tp_send(void *arg)

batadv_tp_vars_put(tp_vars);

do_exit(0);
return 0;
}

/**
Expand Down

0 comments on commit 529ea5b

Please sign in to comment.