Received: by 10.223.185.116 with SMTP id b49csp527156wrg; Wed, 14 Feb 2018 02:56:31 -0800 (PST) X-Google-Smtp-Source: AH8x224PvCJ8Ok8F5YptSZB8M3RHJz879g+XRQNbZipe8/EJkxocHTAr+EJmiG34kLNZmhWp5JLY X-Received: by 10.99.63.139 with SMTP id m133mr3534762pga.174.1518605791601; Wed, 14 Feb 2018 02:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518605791; cv=none; d=google.com; s=arc-20160816; b=DSoBPWkaA8hWVPBHWpKiPuCR8P9SdtT3MV1gDwjVw1b8cLeJYlddzcQ6hkW+X/M/x/ ogtuvhslRc7mGO0JuOQVeESYdyetNLnWhepZjH2sUHVDdh7E9/drpsLC4K0C9NNdyi6p OAwHKBrwD95R8LyFzQLgTLbiITgEVxetk2YGDesSVEhLDu2dEOqAJNIlDqemGwgxz3pi 0Br6Xn2XfrDMr9GksU6486xxXXrE4t6yjTYzVsWWqDwYlP6fM/Dj+bGOmBaZKNvpKpJI elR+HpVk+OWzg1t9Vzs9J2Wj6YmeJyXYjR9MNiYWm1zUCqS8AsQAZwQvimLvI2862S/m 1QTA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=oZ2c4Z1kadB3+dWzfsBmd7kRzgiFsZ3VY+kSrVb1MuY=; b=TiVwSOpZE1+W3SOD9bWVVZD/QmuOjIvjmnBw7LIB6H8cd6oZXVlrNCdcqWevYnZJRE m+rsjc4QeCByx6Dx8V+pFSN+s+6crQ38wn2GF8gOA/pdLnARpICT0+Pfu7RnyWWdy2iy MKZ9qWqjzR2PDwS9wBV7QTiSjZb1flBnAFYYg9Ud8gc73FoW6Bov0sOCRQZ+KZAyXQus X4r5hJY3EGGz3kPI6zKqVoR7Cb8Rev4gQSq7bcq3CCkufzOZOkpdijP044SYbN7W230+ J7zyzj+qLHD9weNPbnKLQst9QL1P4eBK9QMMvY1u6EBckU+0GIvNJietmd+hnhEPiNrh jupw== ARC-Authentication-Results: i=1; mx.google.com; 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 i10si1957576pgs.375.2018.02.14.02.56.16; Wed, 14 Feb 2018 02:56:31 -0800 (PST) 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; 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 S967314AbeBNKz2 (ORCPT + 99 others); Wed, 14 Feb 2018 05:55:28 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:45513 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967159AbeBNKz1 (ORCPT ); Wed, 14 Feb 2018 05:55:27 -0500 Received: from 79.184.255.223.ipv4.supernova.orange.pl (79.184.255.223) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id 946f9c0db878b08e; Wed, 14 Feb 2018 11:55:25 +0100 From: "Rafael J. Wysocki" To: Lukas Wunner Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] PM / runtime: Update links_count also if !CONFIG_SRCU Date: Wed, 14 Feb 2018 11:53:37 +0100 Message-ID: <28130344.VaHZHOhuzq@aspire.rjw.lan> In-Reply-To: <68feef8bf476ab150e6481b54f1b6f5c401b8e10.1518286105.git.lukas@wunner.de> References: <68feef8bf476ab150e6481b54f1b6f5c401b8e10.1518286105.git.lukas@wunner.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday, February 10, 2018 7:13:58 PM CET Lukas Wunner wrote: > Commit baa8809f6097 ("PM / runtime: Optimize the use of device links") > added an invocation of pm_runtime_drop_link() to __device_link_del(). > However there are two variants of that function, one for CONFIG_SRCU and > another for !CONFIG_SRCU, and the commit only modified the former. > > Fixes: baa8809f6097 ("PM / runtime: Optimize the use of device links") > Cc: stable@vger.kernel.org # v4.10+ > Cc: Rafael J. Wysocki > Signed-off-by: Lukas Wunner > --- > drivers/base/core.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/base/core.c b/drivers/base/core.c > index b2261f92f2f1..5847364f25d9 100644 > --- a/drivers/base/core.c > +++ b/drivers/base/core.c > @@ -310,6 +310,9 @@ static void __device_link_del(struct device_link *link) > dev_info(link->consumer, "Dropping the link to %s\n", > dev_name(link->supplier)); > > + if (link->flags & DL_FLAG_PM_RUNTIME) > + pm_runtime_drop_link(link->consumer); > + > list_del(&link->s_node); > list_del(&link->c_node); > device_link_free(link); > Applied, thanks!