Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7865941rdb; Thu, 4 Jan 2024 10:01:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFo41QADceiw9/yOw6eEuVyoD6ONsYNvRpS1kkba9ji42L+0fnaiOtR9muyXVR5itJ5Gzb3 X-Received: by 2002:a17:906:f84a:b0:a28:d396:fe2d with SMTP id ks10-20020a170906f84a00b00a28d396fe2dmr466560ejb.90.1704391281349; Thu, 04 Jan 2024 10:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704391281; cv=none; d=google.com; s=arc-20160816; b=isg8T4ruMpbFMgepYKo3egYSA8/gNl3F6k6ro3srXMVYxlkrxGZYDBSaY0BP2R9PVj v6bidNJj3yIW857jkG3OYSS7HzwEc7Q3dF3JSahXws8moyyTvWhwTy1FVdS91QXuxyuB 66n3g+5SKo0yESYvWeoqxw7Uc8f7GeV7cOTkrq0eBb8XfJM9gPisRygrxQN5rNjGkQdm WFe5U6W/ZGDPNaI2Jcn9bz0jr/nh0P4RH57ZFjx5PiREOJaHy4c0Yg/bI+cXh8EcvElh ohi4xeD+PqLNpoB32kRMWFeFVpW/LBD/NvcAtPluwjFui+Bkjcz1qnXwCfnO52Nwin2A 6ylA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=eu5YlIQJDTB29F9zBZ6QeUpQq4Hsfh0LpNOdwuB2ABY=; fh=6iJHlF+fAcVpMC83yBd90iqhoRz1JJ48T3QjD4TnRAY=; b=w4Jg3cHxprEX9Bpia3btpZmzKyq/3L6os1B3ZDsNAQsmEKz5qQYYGXeBSsgsfzyuYU YTMtaH6hUTpQP/XyThYbulfBFwZTvsZ/39RikSCUMt/51ABLmyloo5aiyUHrftEnlPj8 Y7H/JjRKPvfK8svDo3bTH6RGhTc8otLB472muJlPU0saDk8vHmbWel2EAPFZUlnWwxde Gp2I9CRXuCy4jPNJ1Ttb3DlWgp/DMNJWovcLLpArAO4BEu+tAaT1+0CF/PFY4aO8dzSd jvL3Hc1abdHIYzw0E29BVDk/XQSUT88sJjaQGl5vk5VpLO8J22xAMYPArFXSK2WMI8zG xCBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q/JPf4v1"; spf=pass (google.com: domain of linux-kernel+bounces-17071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h8-20020a17090791c800b00a276e0c53e5si5637025ejz.154.2024.01.04.10.01.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 10:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Q/JPf4v1"; spf=pass (google.com: domain of linux-kernel+bounces-17071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 862201F22BEA for ; Thu, 4 Jan 2024 18:00:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E3A028DCF; Thu, 4 Jan 2024 18:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Q/JPf4v1" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6365028DB0 for ; Thu, 4 Jan 2024 18:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704391244; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eu5YlIQJDTB29F9zBZ6QeUpQq4Hsfh0LpNOdwuB2ABY=; b=Q/JPf4v1fS6JZHiXzWuaJRdpMR3QiJqTUqfQLMvMvRjNjoaivCDP8nXmKzmUZCMag8ZhLF TwuCFNtQiDgCaFJaidKXGgbDe8nnmV9/Jw+2iX6JFWAdOf1YTjRWEAguN+meVBKYLEkirn ZCdil+LoF0/+ISkcBTlTcihG3vi5eLw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-453-dDr8HvIjMzSUfG-Lahkm_w-1; Thu, 04 Jan 2024 13:00:38 -0500 X-MC-Unique: dDr8HvIjMzSUfG-Lahkm_w-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E32323806739; Thu, 4 Jan 2024 18:00:37 +0000 (UTC) Received: from metal.redhat.com (unknown [10.45.224.239]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5E0661121306; Thu, 4 Jan 2024 18:00:36 +0000 (UTC) From: Daniel Vacek To: Tejun Heo , Josef Bacik , Jens Axboe Cc: Daniel Vacek , cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] blk-cgroup: clean up after commit f1c006f1c685 Date: Thu, 4 Jan 2024 19:00:30 +0100 Message-ID: <20240104180031.148148-1-neelx@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 Commit f1c006f1c685 moved deletion of the list blkg->q_node from blkg_destroy() to blkg_free_workfn(). Clean up the now useless variable. Signed-off-by: Daniel Vacek --- block/blk-cgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 4b48c2c440981..2f39bd7cb6db5 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -575,13 +575,13 @@ static void blkg_destroy(struct blkcg_gq *blkg) static void blkg_destroy_all(struct gendisk *disk) { struct request_queue *q = disk->queue; - struct blkcg_gq *blkg, *n; + struct blkcg_gq *blkg; int count = BLKG_DESTROY_BATCH_SIZE; int i; restart: spin_lock_irq(&q->queue_lock); - list_for_each_entry_safe(blkg, n, &q->blkg_list, q_node) { + list_for_each_entry(blkg, &q->blkg_list, q_node) { struct blkcg *blkcg = blkg->blkcg; if (hlist_unhashed(&blkg->blkcg_node)) -- 2.43.0