Message ID | 20210111035526.1511-1-benbjiang@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=TJZR=GO=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 X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11968C433E0 for <linux-mm@archiver.kernel.org>; Mon, 11 Jan 2021 03:56:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8FC502245C for <linux-mm@archiver.kernel.org>; Mon, 11 Jan 2021 03:56:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FC502245C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AC1476B00D3; Sun, 10 Jan 2021 22:56:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A97466B0117; Sun, 10 Jan 2021 22:56:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 938296B0119; Sun, 10 Jan 2021 22:56:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id 7715D6B00D3 for <linux-mm@kvack.org>; Sun, 10 Jan 2021 22:56:00 -0500 (EST) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3BBC2180AD815 for <linux-mm@kvack.org>; Mon, 11 Jan 2021 03:56:00 +0000 (UTC) X-FDA: 77692130880.17.toys81_5c176d927509 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 1F41A180D0185 for <linux-mm@kvack.org>; Mon, 11 Jan 2021 03:56:00 +0000 (UTC) X-HE-Tag: toys81_5c176d927509 X-Filterd-Recvd-Size: 3651 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf14.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 11 Jan 2021 03:55:59 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id g3so8830137plp.2 for <linux-mm@kvack.org>; Sun, 10 Jan 2021 19:55:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TPpO7uwACT3qF76CIRKljdkA+kPcxYirzS1ReRG4ryw=; b=D7iHpQeGTDnVoH9/flTLwTFSYaUm54qf7IynZXyHFYm720oL5f+7+tRKw0bOd5ce3f 9mT/lB9YGVKtFHhginEetjesTh/GKxEIr8C9xswUxLb9ioPmFPCo1cNEFgvR7JStEy/V sgrH9gmOYhIeWuPBNHcUGche0qKNI5OcIzmw/EKj+MpCZDoUef1njI6jxlkHFwL2XDab za6ybei3hJjcCmbI8ASFrpQocT7XjVKML35rQgxgJE/C/5orYnlEW7qliqYx1fRbo8NG tDjBmKDVzUsau0SKYdruz5iCn9USoGJDkb0VsGwgnVrsbYTInc3gDdRqasXpRrRY8+jt tgxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TPpO7uwACT3qF76CIRKljdkA+kPcxYirzS1ReRG4ryw=; b=ulHYdBxYBadmMacaHuM6LrTBJCRNUPqcZ9OOwqoLeA6KdqFypVU/0PiwU4pCreNxup D1eSEQG1ZVYzZlUDOmovE9MfNWmLSpdU0TnvGISqUaoAvPLx7flvtyaKDNKCLXvR8h6Y PMjzaElUBOw3aGBe8NJogkiFR3j45riISfz339QNA3GkrcoHQNIye7cZfi/aPOQO+Qfd yU9EXC9mC26W/NyccjDryN+IFl4ifHZWwQHqsSgvt8zYnsZGkbiQYsYrqwZF0SnGqV7g cwwdH0GpeqdgR5K4RPFEIm0Kw0VIDa6E2sO/pO36KvvF7QHGiN0aAzWohq1/Mzm8k0VZ NRuA== X-Gm-Message-State: AOAM532Np6T3Etsm/w5HI/31HNmEiCUWWaHcxn7sUhhupLT9DtLiYinq aADSyaazif0Tf7gas5O0wtA= X-Google-Smtp-Source: ABdhPJwl35ZrGzmHXShiHiqPQiBkrSw7ny6eJKPY4CSl86weSLiskU4c5Wq630Qbbp6ZFqn8qyiYcA== X-Received: by 2002:a17:90a:f683:: with SMTP id cl3mr15990966pjb.136.1610337358822; Sun, 10 Jan 2021 19:55:58 -0800 (PST) Received: from localhost.localdomain ([103.7.29.9]) by smtp.gmail.com with ESMTPSA id o32sm19187816pgm.10.2021.01.10.19.55.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jan 2021 19:55:58 -0800 (PST) From: Jiang Biao <benbjiang@gmail.com> X-Google-Original-From: Jiang Biao <benbjiang@tencent.com> To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Jiang Biao <benbjiang@tencent.com>, Bin Lai <robinlai@tencent.com> Subject: [PATCH] mm/vmstat.c: erase latency in vmstat_shepherd Date: Mon, 11 Jan 2021 11:55:26 +0800 Message-Id: <20210111035526.1511-1-benbjiang@tencent.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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> |
Series |
mm/vmstat.c: erase latency in vmstat_shepherd
|
expand
|
diff --git a/mm/vmstat.c b/mm/vmstat.c index f8942160fc95..b538199883b5 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1953,6 +1953,8 @@ static void vmstat_shepherd(struct work_struct *w) if (!delayed_work_pending(dw) && need_update(cpu)) queue_delayed_work_on(cpu, mm_percpu_wq, dw, 0); + + cond_resched(); } put_online_cpus();