From patchwork Thu Nov 25 16:08:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12639487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE215C433F5 for ; Thu, 25 Nov 2021 16:09:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4E43D6B0078; Thu, 25 Nov 2021 11:08:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 493546B007B; Thu, 25 Nov 2021 11:08:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 381FE6B007D; Thu, 25 Nov 2021 11:08:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 274E06B0078 for ; Thu, 25 Nov 2021 11:08:49 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id D8A511803F924 for ; Thu, 25 Nov 2021 16:08:38 +0000 (UTC) X-FDA: 78847935558.09.16E2794 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf07.hostedemail.com (Postfix) with ESMTP id 8F21110000BC for ; Thu, 25 Nov 2021 16:08:33 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 7718461100; Thu, 25 Nov 2021 16:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1637856516; bh=N5TLbEnpaRUARJ76fwRz7ItfnXC2ozGdxm0U6oH0+KE=; h=From:To:Cc:Subject:Date:From; b=Cb0vmqBIiyBwLDI/QA9Hy+DbIBlokK6kWIuIoGUkhO0UaFUvwO5Q87Ds1bOKEJbzC b6eXrH5+8Z1X0W3z2H2aZotndER7wWRxvXQiCcFQuUFwwlEGMEwqL8WytnVuoQZEaI AbQorLSh//vLx1Zv9eOJUe6zbMcpCOcWD825NPdDBF1Q6zlhPjq0yYD+i6PWdrY1u+ B5+bdT9FOF145ZSaB/LFppGP5RYaNj6IUZeH7c1AmHUL22P25k092IioiU04EabR7m ucvoQZcHsRoc3O0p7b6dcrgwwtRRyWxr3LEyJgK99rRdNl89BxwnDwG8DkXb57D0pR cnGSogHSG+MwA== From: SeongJae Park To: akpm@linux-foundation.org Cc: john.stultz@linaro.org, tglx@linutronix.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH v2 0/2] mm/damon: Fix fake /proc/loadavg reports Date: Thu, 25 Nov 2021 16:08:28 +0000 Message-Id: <20211125160830.30153-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 8F21110000BC X-Stat-Signature: r6he4jemfpe9qj4dtbw7eawmo1k51i7h Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Cb0vmqBI; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf07.hostedemail.com: domain of sj@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sj@kernel.org X-HE-Tag: 1637856513-68670 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: This patchset fixes DAMON's fake load report issue. The first patch makes yet another variant of usleep_range() for this fix, and the second patch fixes the issue of DAMON by making it using the newly introduced function. I think these need to be applied on v5.15.y, but the second patch cannot cleanly applied there as is. I will back-port this on v5.15.y and post later once this is merged in the mainline. If you think this is not appropriate for stable tree, please let me know. Changelog --------- From v1 (https://lore.kernel.org/linux-mm/20211124145219.32866-1-sj@kernel.org/) - Avoid copy-and-pasting usleep_delay() in DAMON code (Andrew Morton) SeongJae Park (2): timers: Implement usleep_idle_range() mm/damon/core: Fix fake load reports due to uninterruptible sleeps include/linux/delay.h | 14 +++++++++++++- kernel/time/timer.c | 16 +++++++++------- mm/damon/core.c | 6 +++--- 3 files changed, 25 insertions(+), 11 deletions(-)