Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4393948pxb; Mon, 27 Sep 2021 16:26:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6y6aEtCoZXPxScHkC+dQtzllR9lCsFBuH34dD1I3VdowOp3klI3urOqhZvMb31oBQ1o3C X-Received: by 2002:a63:af0c:: with SMTP id w12mr1823572pge.297.1632785168440; Mon, 27 Sep 2021 16:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632785168; cv=none; d=google.com; s=arc-20160816; b=0ACNIryxadPQ4FL7PymhfbdKP7zx46/Uj9QQEFYreSSzk5OODin7sVkzM9JhpmVV3v t8OgSSVXri48BAI1QTFmLuVDVbQZyIXXzJQBal7G50Uj4yGZse40sO54EE5fH3BXS1mg 9v4VvjKZxKasTCtktOLDOtiYoiiwSNd82jaDiPtOLmGCrXEzLT6LgXHNGngqLzMOmmTj O32GfOmjBikSQJj7O+ko6su9+/KMwUflWQixR5FjxR0W5rIq6LRmKwv2DqKps41w0dKq 0SPHD53edtK5DvzWn/UZVZxuSxHRTHZNd6QaW02qKvNISTsHHJITaBduZsM1ndeQGTjD FRNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GCzm4poULKgx57QgluC94f0t7RIOPooxQya71dloyms=; b=he77thU0kZlzzxq39ms0d0vAJY1vfuAbk1rAouo0GEknYph3ksb1HWL/ukD2o1zX1c gxXIy2KM504u+qM9k7IA2uvAxNKH9n8+81V87RFCYqlMZPYHO6Xxzl7qYwOiSpvJBzO5 NJLklLIdwn+IIMbPRK2zA/v6ivxX7JiKM9y97EBQhwEcv55avEZdQTeMtRTg/pJ2DNU4 uAmtblxEtrDhfURAnO09PmjIENzljcAlCHcNj9GVhpUw9km++wmjRWxYqHhgj2yqoPeG 96ZKMLlO4dcNLLofnHwExhaNC/lpMEYQQs8O5i3KVyLPQj1SH9su3igLY/HAfk84ud/L CX8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nCp0UtgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si2782237pli.188.2021.09.27.16.25.56; Mon, 27 Sep 2021 16:26:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nCp0UtgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238168AbhI0X0F (ORCPT + 99 others); Mon, 27 Sep 2021 19:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238153AbhI0X0F (ORCPT ); Mon, 27 Sep 2021 19:26:05 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDC92C061575 for ; Mon, 27 Sep 2021 16:24:26 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id u1-20020a17090ae00100b0019ec31d3ba2so376141pjy.1 for ; Mon, 27 Sep 2021 16:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GCzm4poULKgx57QgluC94f0t7RIOPooxQya71dloyms=; b=nCp0UtgIb73IG+2ORtKcI5uHOuMCAd3ZU1t1ZH3uVz98qBzlmRdBVAjizLKhkFLVrF Q/4TxiHYloWScmgXlT9fcRor3LzS+USZZl/gXQWkFuUZ3HNSedxFAESL3VHCqkPhqR7n IkTJUYFCnUg+HKJuB+jIz0LgO22a44o81p8C6b4rPkkmmu6jlaUBgA95E20j15Rk6lWv Lbc0BOYlR2hkWIhLjalbtOy28HcqL0968qLg77HPtUUZCiQBkpCext6QZXcAjRCGJYou rAM0/ZYLjJcDWzMQICW9QsGTBJSLeohpdWGAigpNvwTBjv3k8aqTP1UN2+Un0AbbdBu3 bpeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GCzm4poULKgx57QgluC94f0t7RIOPooxQya71dloyms=; b=Ab0Ha8JoddG7XRc7Cth4FNPCZUJ1dJsrAW0k0Ed/f9rLLDlZtb/oLrF0dZFgZU1ocV 2colmyqGg2oBkXTaYpMLJzOO5wJa8OkDOELos6ARt/ZQzI0uSSQe82Rj8upRnIvvgGM+ UxvTPLZMRDlzBvgkd54/Ro4sjKawIEV0DXnFLozyTyUM/E7bXcKi8/gkXX0lzPk2/EMv 67EcQar3DOVzZmRx63uHA/76tB2hnY4GbpKrpQTY6PHrcWsHeQBzYXUd6Iy8RwqtYmyq wb98DVIiVD7mxveis8CHbD2AUiPO4cuPXWXGDsVlCyY7Rch4OXF7ZYsigNYgHTkvgPNA wpow== X-Gm-Message-State: AOAM531sRhhaxDnqtpgl7ukAbfCiJuw4a5ZJONHs4+UVWJTtOEUl+30g 0XfmlwIftAzaV5aTr7thYAE= X-Received: by 2002:a17:90b:4ac1:: with SMTP id mh1mr1854719pjb.238.1632785066359; Mon, 27 Sep 2021 16:24:26 -0700 (PDT) Received: from vultr.guest ([141.164.41.4]) by smtp.gmail.com with ESMTPSA id f27sm19145933pfq.78.2021.09.27.16.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 16:24:25 -0700 (PDT) From: Changbin Du To: Andrew Morton , SeongJae Park Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Changbin Du Subject: [PATCH] mm/damon: remove unnecessary do_exit() from kdamond Date: Tue, 28 Sep 2021 07:24:21 +0800 Message-Id: <20210927232421.17694-1-changbin.du@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just return from the kthread function. Signed-off-by: Changbin Du --- mm/damon/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/damon/core.c b/mm/damon/core.c index 30e9211f494a..bc5f74348649 100644 --- a/mm/damon/core.c +++ b/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" -- 2.25.1