Return-Path: <SRS0=bSwl=PY=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB431C433EF for <linux-mm@archiver.kernel.org>; Fri, 5 Nov 2021 20:46:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 887CD6128E for <linux-mm@archiver.kernel.org>; Fri, 5 Nov 2021 20:46:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 887CD6128E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 199639400D6; Fri, 5 Nov 2021 16:46:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 147329400C1; Fri, 5 Nov 2021 16:46:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F03CC9400D6; Fri, 5 Nov 2021 16:46:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0170.hostedemail.com [216.40.44.170]) by kanga.kvack.org (Postfix) with ESMTP id DD3D09400C1 for <linux-mm@kvack.org>; Fri, 5 Nov 2021 16:46:11 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A27FB18264875 for <linux-mm@kvack.org>; Fri, 5 Nov 2021 20:46:11 +0000 (UTC) X-FDA: 78776058942.03.75A4074 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf05.hostedemail.com (Postfix) with ESMTP id BAC00508FA46 for <linux-mm@kvack.org>; Fri, 5 Nov 2021 20:45:53 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 5ECFF6135A; Fri, 5 Nov 2021 20:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1636145170; bh=2YHM+jk7eYYqSgWjZAtGj9Hr2ACNlZNXejG7tpC+Ucg=; h=Date:From:To:Subject:In-Reply-To:From; b=nJJKS9kfjnHhin/PzuOP2TVtHPWsNiY4aiwoJQsC1v5uuxO/Bf9LGoftRUXlaD3vx MtzLOZqXSx0vtB1crzjHi728VnG+Xkluh7zq4b92ExGnfUrpPpP0pWKMKWWPqgJi4X L8dZhAwxOSYc6qIFIse4IJyxhCopPzRd43jxQz2U= Date: Fri, 05 Nov 2021 13:46:09 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, changbin.du@gmail.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, sjpark@amazon.de, torvalds@linux-foundation.org Subject: [patch 220/262] mm/damon: remove unnecessary do_exit() from kdamond Message-ID: <20211105204609.O_S_2ZhvC%akpm@linux-foundation.org> In-Reply-To: <20211105133408.cccbb98b71a77d5e8430aba1@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=nJJKS9kf; dmarc=none; spf=pass (imf05.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: BAC00508FA46 X-Stat-Signature: 3u3493tohyhpu1pniy1yo9j88rfmtmgp X-HE-Tag: 1636145153-725652 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org>
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"