* + mm-damon-remove-unnecessary-do_exit-from-kdamond.patch added to -mm tree
@ 2021-09-28 0:09 akpm
2021-09-28 7:23 ` SeongJae Park
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2021-09-28 0:09 UTC (permalink / raw)
To: changbin.du, mm-commits, sjpark
The patch titled
Subject: mm/damon: remove unnecessary do_exit() from kdamond
has been added to the -mm tree. Its filename is
mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Changbin Du <changbin.du@gmail.com>
Subject: mm/damon: remove unnecessary do_exit() from kdamond
Just return from the kthread function.
Link: https://lkml.kernel.org/r/20210927232421.17694-1-changbin.du@gmail.com
Signed-off-by: Changbin Du <changbin.du@gmail.com>
Cc: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/damon/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/damon/core.c~mm-damon-remove-unnecessary-do_exit-from-kdamond
+++ a/mm/damon/core.c
@@ -714,7 +714,7 @@ static int kdamond_fn(void *data)
nr_running_ctxs--;
mutex_unlock(&damon_lock);
- do_exit(0);
+ return 0;
}
#include "core-test.h"
_
Patches currently in -mm which might be from changbin.du@gmail.com are
mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
mm-damon-neednt-hold-kdamond_lock-to-print-pid-of-kdamond.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + mm-damon-remove-unnecessary-do_exit-from-kdamond.patch added to -mm tree
2021-09-28 0:09 + mm-damon-remove-unnecessary-do_exit-from-kdamond.patch added to -mm tree akpm
@ 2021-09-28 7:23 ` SeongJae Park
0 siblings, 0 replies; 2+ messages in thread
From: SeongJae Park @ 2021-09-28 7:23 UTC (permalink / raw)
Cc: changbin.du, mm-commits, sjpark
>
> The patch titled
> Subject: mm/damon: remove unnecessary do_exit() from kdamond
> has been added to the -mm tree. Its filename is
> mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
>
> This patch should soon appear at
> https://ozlabs.org/~akpm/mmots/broken-out/mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
> and later at
> https://ozlabs.org/~akpm/mmotm/broken-out/mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
>
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
>
> ------------------------------------------------------
> From: Changbin Du <changbin.du@gmail.com>
> Subject: mm/damon: remove unnecessary do_exit() from kdamond
>
> Just return from the kthread function.
>
> Link: https://lkml.kernel.org/r/20210927232421.17694-1-changbin.du@gmail.com
> Signed-off-by: Changbin Du <changbin.du@gmail.com>
> Cc: SeongJae Park <sjpark@amazon.de>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Thanks,
SJ
> ---
>
> mm/damon/core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/mm/damon/core.c~mm-damon-remove-unnecessary-do_exit-from-kdamond
> +++ a/mm/damon/core.c
> @@ -714,7 +714,7 @@ static int kdamond_fn(void *data)
> nr_running_ctxs--;
> mutex_unlock(&damon_lock);
>
> - do_exit(0);
> + return 0;
> }
>
> #include "core-test.h"
> _
>
> Patches currently in -mm which might be from changbin.du@gmail.com are
>
> mm-damon-remove-unnecessary-do_exit-from-kdamond.patch
> mm-damon-neednt-hold-kdamond_lock-to-print-pid-of-kdamond.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-28 7:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 0:09 + mm-damon-remove-unnecessary-do_exit-from-kdamond.patch added to -mm tree akpm
2021-09-28 7:23 ` SeongJae Park
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.