Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3902885ybi; Mon, 29 Jul 2019 15:01:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6kcnbNugW5fIdGrOtCWq7s5T7a2TabmSyH8xsASJqH+5rYby8zH/jtMUxKQNPnRroOE0D X-Received: by 2002:aa7:9293:: with SMTP id j19mr39765011pfa.90.1564437693094; Mon, 29 Jul 2019 15:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564437693; cv=none; d=google.com; s=arc-20160816; b=V7A54AEzocGgMeSoIxcWKcF2SY1BNt5g9EReedq5w8X+zsiy74P1htf0eCsY+nriHv Xfg4GC8oSUkF+xNXGK8mM46LrH9gdnp4ykoLYieevzvkCuUxSAe8Ngtx2fGj2MYCspEY iRcW83NV5ha7mVHQHLB/oCBzYR3D/KdLTBFSeep3NhU566lDoYd2JMdYDg2cOylHinE/ EtInoiMF1nAE9XB1zf1OLK81HfJDaJLrTFtfoFysdiq/NmcsGJiLkmbRxTNX6w8LaFv7 0a3eRJ+8xHCuPcuD1dgalvuByiv/bQWHIjSAkpJ3Jl1asEol8Wo5OeyGiTsK8qGaM3VU KLBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IBDCb0haebhon5Z4/qe1LVRzsmUDspokazFheB8a07w=; b=dvtPh/0MhHtb90cXlqYDnDjYn+XZrGHwfvLwGZBXzEUBc2Rlep+UrKno/33OxAufZC rgkbTcp1P+V8HIP8eD0pQ9IXTqAByFJPW7IcBEEibtqbE3VI18Rlr7vP/g1kSM7YuW2M 7sD37SUEPQUZGEnG8yZruj9PPLzJ0H+1Tk0E7uqd3mCD6EPfiJSmMMjr4moimwrT9jOz HKo6I7j1Dgv076xGu078Z/N3O4gdbX9GuXnZiI2z/5jMhpAW/qyqAik4jI0LmKzVd+AY 0f3mOEcXz90Iwny/0ViuLvCUloDolY82iI2HwMoH9v1F1Uq0jN+n1kR6cz7jM5OTk55K sFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hmt4jhtW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m128si26624888pfm.97.2019.07.29.15.01.18; Mon, 29 Jul 2019 15:01:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Hmt4jhtW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729184AbfG2T0N (ORCPT + 99 others); Mon, 29 Jul 2019 15:26:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:38584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbfG2T0L (ORCPT ); Mon, 29 Jul 2019 15:26:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7106820C01; Mon, 29 Jul 2019 19:26:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428370; bh=yd6864k3XuVp8SmYT1XPXXWL1SzNXpGGilzBZ+3VdBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hmt4jhtWgTYx5WQlZv3AKSLUdsN/G4ZKTEY3C6xsTruPYGxLTQdWQdg9brkLINh7r hGOJxW+shG7vW/fPhU11uwIB+djgTn7fJ5GyfhzxVlWfFvvtRGSWYxdK/9Lxro6YS8 uQJlovmB6hDHlnRUhddXky7pnBu+XsRsVfnmqcwY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jilong Kou , Gao Xiang , "Peter Zijlstra (Intel)" , Tejun Heo , Andrew Morton , Linus Torvalds , Miao Xie , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.14 053/293] sched/core: Add __sched tag for io_schedule() Date: Mon, 29 Jul 2019 21:19:04 +0200 Message-Id: <20190729190827.868949370@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit e3b929b0a184edb35531153c5afcaebb09014f9d ] Non-inline io_schedule() was introduced in: commit 10ab56434f2f ("sched/core: Separate out io_schedule_prepare() and io_schedule_finish()") Keep in line with io_schedule_timeout(), otherwise "/proc//wchan" will report io_schedule() rather than its callers when waiting for IO. Reported-by: Jilong Kou Signed-off-by: Gao Xiang Signed-off-by: Peter Zijlstra (Intel) Acked-by: Tejun Heo Cc: Andrew Morton Cc: Linus Torvalds Cc: Miao Xie Cc: Peter Zijlstra Cc: Thomas Gleixner Fixes: 10ab56434f2f ("sched/core: Separate out io_schedule_prepare() and io_schedule_finish()") Link: https://lkml.kernel.org/r/20190603091338.2695-1-gaoxiang25@huawei.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index b3ff73d6a4c2..ff128e281d1c 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5026,7 +5026,7 @@ long __sched io_schedule_timeout(long timeout) } EXPORT_SYMBOL(io_schedule_timeout); -void io_schedule(void) +void __sched io_schedule(void) { int token; -- 2.20.1