Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1868646lql; Wed, 13 Mar 2024 10:15:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUv1qu/bCxHC0B3nnixKrk2fDfXamC6MTwjXG6qT0nn+74ZQKtc5fRU3yO2cjda1u/IRj2ck0qWVS/HVNxBTFnzx4l3MkLKY0fAaoDWeg== X-Google-Smtp-Source: AGHT+IEUds54C8aO3glbMX6YdT5SX3xPmiY/IZYMGO5PRx9gMiYpkXYGARNEtkPoeAeahZYAtYYU X-Received: by 2002:a50:8d42:0:b0:566:d27a:2ab5 with SMTP id t2-20020a508d42000000b00566d27a2ab5mr5335588edt.10.1710350108407; Wed, 13 Mar 2024 10:15:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710350108; cv=pass; d=google.com; s=arc-20160816; b=M7bhv+U0iZHs5g2wrHtRcGiWkSvdgLDKgHjwq8KXnYjiTiITNpqQptjLdH/hs0CMOY T6H2ubc+xZwHGPuBMnc65pwxdfxAg4SYkYxNiy2izcuiI9sBA9nVwvsstcj7M6l7rx9o 9EVCad3S9fCoIeHs3ZnTWxAlkyTG8iWo6rfPTRs9neFYlqF8NUYcvWyRfPMA4codE4Zm yUiy9bDspdfZn0YJT1OQ2aOXIuxB5Hff6IfVP8ELmq2AtwgRynzEH5/XLRU1PN+RQjqJ G0twHIlLNC+8JtH2bFz8rOpN62G3C6yh01bDGDBvZyA4KEHfxlv+dROGnIRsO2HcQeAK +05A== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9JePS09ZOaq9sd/3Ew4BM7Lj+tOjGBMz4AOMrhQ03LM=; fh=J/C6mlTCpP/3MizKKehihmp05L4mxihnj4tETvDpnBY=; b=Mdk0SoKbgXDYNP1jgpdPP42QeX5XQli2kLA4M4yqBRokTbeOwIhgkA6Cd/XvvBd6gc s4tIVlHea57+APP/yf0LD1yEWJmHDqHrosRmlPMdM2YcEOmYaR8xa1gxY9AGX+ZaL1QW tTGDVbAb/+lnuMaHc2Am7TIQSTCljrMJlINzEPNKJoUFvB/sVxP6a8j9MeSVgqke5uLj ESNgeZB9trPepCFIB5nhgQb3xvlfyaB9QzEyWiI4hXAyYGwierXqSaTkL+PyAmcfezvU USWoCXMaIFMWdldEtzk3G8ZYunne2V0C8cD+vaR2L3Ia3baDhMZZF7PoTnY14H2aEKNS tGaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h79dsPer; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q9-20020a056402248900b0056855857e7bsi3450723eda.531.2024.03.13.10.15.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:15:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h79dsPer; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101917-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 010C41F2FF8E for ; Wed, 13 Mar 2024 17:15:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BE75129A75; Wed, 13 Mar 2024 16:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h79dsPer" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2856286252; Wed, 13 Mar 2024 16:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348058; cv=none; b=fXEQUIsSFh+/S2i5nt1GaPW8qJNFQMKcUjm2Bqgd1jihLCF6hAsa+SU2J2Yc1ptnpzpTjzepEvToOOG2gFO4GIIkeWgkHs1L7UMXWOz/4qzcf6cCLslvDmDB5l3/JRdgTnp4T35IDaI5KsSq0SelW86ektz1LS4ppZR4nsGVkJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348058; c=relaxed/simple; bh=uLR2HXXfcTb17vMFKT0En/Q5eZl9oBPOTtFoesrxo0Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MX/x2Cw0aF9P0h+6aqLBSaysQ3oVy79VfB5MMUuQkEnyQUo0TCrXhT7XVB/RAAnthECZwNwD54gB0twEMnVTn9qWEmqDME8F0W9yUN8UWo8pt4MuhhZcG8lnKIUj4kY6Cj+XyWYRwPUUDFOj2H8c/1J4H2D42HGRA6hCT9gTC/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h79dsPer; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7CBDC433F1; Wed, 13 Mar 2024 16:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348057; bh=uLR2HXXfcTb17vMFKT0En/Q5eZl9oBPOTtFoesrxo0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h79dsPeriBOZgOLZc1oHYRQAwi/E0AiNE8mFgeDcSJJD9J2o9/l2GHLYhvWUNlmc1 jmoosxDA4/EwCkVx/smBIlaBSX0vAH8Qqd2q9sAWimi8lFd2MX/zlJ5GT2infigphP HY8Oz/HjUkLLieldCLnGpBju86aOhRulLT/Wn+Q6ljvJrEoqpriGu7SnmpxseA9XkD mamPnuZlcgqAGCXFikCP+EHAz3EXKT0WA7TTv5uP6MnwPRBCYhsGnnCqZZQtZZlRQi EZMZrGmU1PSJbO0OuMIDLQZrhkF47Kp/FWmvSX5WGoMzGvOSl0W7zxWsNZ00MO6nKb xM52LiwRwYfIg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yu Kuai , Christoph Hellwig , Eric Biggers , Jens Axboe , Sasha Levin Subject: [PATCH 6.1 49/71] elevator: remove redundant code in elv_unregister_queue() Date: Wed, 13 Mar 2024 12:39:35 -0400 Message-ID: <20240313163957.615276-50-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313163957.615276-1-sashal@kernel.org> References: <20240313163957.615276-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.82-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-6.1.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 6.1.82-rc1 X-KernelTest-Deadline: 2024-03-15T16:39+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Yu Kuai [ Upstream commit 6d9f4cf125585ebf0718abcf5ce9ca898877c6d2 ] "elevator_queue *e" is already declared and initialized in the beginning of elv_unregister_queue(). Signed-off-by: Yu Kuai Reviewed-by: Christoph Hellwig Reviewed-by: Eric Biggers Link: https://lore.kernel.org/r/20221019121518.3865235-2-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe Stable-dep-of: f814bdda774c ("blk-wbt: Fix detection of dirty-throttled tasks") Signed-off-by: Sasha Levin --- block/elevator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/elevator.c b/block/elevator.c index bd71f0fc4e4b6..20e70fd3f77f9 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -524,8 +524,6 @@ void elv_unregister_queue(struct request_queue *q) lockdep_assert_held(&q->sysfs_lock); if (e && e->registered) { - struct elevator_queue *e = q->elevator; - kobject_uevent(&e->kobj, KOBJ_REMOVE); kobject_del(&e->kobj); -- 2.43.0