Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3764584pxt; Tue, 10 Aug 2021 10:46:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznHA3g+nrRYjZKjfW7NQHpLpDE1VBLh6g5U1fchR7Uk5Qp3cpdz21/6ZGm7IMZx3kuRaYv X-Received: by 2002:aa7:cd03:: with SMTP id b3mr6555440edw.54.1628617615256; Tue, 10 Aug 2021 10:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617615; cv=none; d=google.com; s=arc-20160816; b=b7hdV/0+WLQZ/P9wouhVzLxbvY7NHuhOJz/vZuLcSnSctl6stCa/6RpuHOPRKGcpQp 5smrdESlRRfdjoMZvrQIoX0qHhUBZWKtTEbQzRY50B3XmaZRVWrDvJAw6eYp241IZdvi /ABuvve2BzdhwAJdBkz/qfyAgvQ/NVk6sKLgmV/cwJpiNIbKLG2EB6ILesWZpxF0QMHZ SocDBMBeEDVPZncvonfORo9+hqs4WcOx/IXYExpYnMhGe/7pCA/L4jJVPOwGMaJIkRfG KxpjAQlSFrRPKxGo7WdgDr5v1+m8MLXi/bKMMHTuLwwOODmYSIPJNL3VjwxeLSb3vB/C QVcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8mrDW5crt6XtnzzkNcoxrhkPk+eH+Il6FsAoZoHQy2E=; b=pGeQ3lrNmFLeS45lpTLFBb730AxMM7DqzuMwjM6x5ko7gryBIup1li8baZRgROfGrF Lpgt/HZhWSza1eg+DuDecLtQ3ZJQty5OQ2JuJpxQEr5fIxG+7ixxBcqC1kyAQ5UFehmD yYa7WZDsKXlVGtzboJwHVtrYwiMcyNRHnrn7VElPabyGi4ilf+pG6RaseY2quWpa1UNM gHhwOJBm3xcvzH2L8Lo6cnxyt91u/d5/qMuabwPmAG13xRvMGDYuv8Xu0lXzy6KthE8M doVUOrj+8Ytv09UpzhAchU+zxRsIaU99hhVnPV08Ymbhtyt6+zb/gn8q8CoRROW/vx25 /MqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q2rXwVAf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k22si4623662edj.160.2021.08.10.10.46.29; Tue, 10 Aug 2021 10:46:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Q2rXwVAf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234686AbhHJRpA (ORCPT + 99 others); Tue, 10 Aug 2021 13:45:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbhHJRlB (ORCPT ); Tue, 10 Aug 2021 13:41:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7677961058; Tue, 10 Aug 2021 17:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617094; bh=5rcsyPFByf0ZprwZ+NDG9Eu3dfyZrhlK0z8ayDrea2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q2rXwVAfXsxKtub4E73BqIk6o2rdhXD8V7l48/d3FNhDSpCO92lGcyA2WhFRT9JrJ 32bJDGppLfQ5/7hLwUHyVyDB1DIbfz9qdHJJBwOC/rouk4o53mknEqdov697ZYg4ch 8rJ7DNXXlogGoS2b+6cCG6wsOPAbbn5srVUacers= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yunsheng Lin , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 043/135] net: sched: fix lockdep_set_class() typo error for sch->seqlock Date: Tue, 10 Aug 2021 19:29:37 +0200 Message-Id: <20210810172957.148233258@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yunsheng Lin [ Upstream commit 06f5553e0f0c2182268179b93856187d9cb86dd5 ] According to comment in qdisc_alloc(), sch->seqlock's lockdep class key should be set to qdisc_tx_busylock, due to possible type error, sch->busylock's lockdep class key is set to qdisc_tx_busylock, which is duplicated because sch->busylock's lockdep class key is already set in qdisc_alloc(). So fix it by replacing sch->busylock with sch->seqlock. Fixes: 96009c7d500e ("sched: replace __QDISC_STATE_RUNNING bit with a spin lock") Signed-off-by: Yunsheng Lin Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/sched/sch_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 854d2b38db85..05aa2571a409 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c @@ -886,7 +886,7 @@ struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, /* seqlock has the same scope of busylock, for NOLOCK qdisc */ spin_lock_init(&sch->seqlock); - lockdep_set_class(&sch->busylock, + lockdep_set_class(&sch->seqlock, dev->qdisc_tx_busylock ?: &qdisc_tx_busylock); seqcount_init(&sch->running); -- 2.30.2