Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1873234lql; Wed, 13 Mar 2024 10:23:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBRjFCE5wLlR57V6AuVcunY4nq1Q9sRBCHpvWSO5PNcsa4iNsT9mNNul2x+kA1bmLMqMsa2Ee+YDCVKOJXzTT5oxdG4stRpaqW6nOcyQ== X-Google-Smtp-Source: AGHT+IGSPem/f8vNn5M7lQSqn3+ym6ULkH0NjIgnxd8vrjR1/dg79b/g9pY+wxGddV/biU83bFbz X-Received: by 2002:a05:6a00:1a8b:b0:6e6:7bcb:b886 with SMTP id e11-20020a056a001a8b00b006e67bcbb886mr3613842pfv.30.1710350595108; Wed, 13 Mar 2024 10:23:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710350595; cv=pass; d=google.com; s=arc-20160816; b=NoCAnAKCWmLt0rOYWbeMWDUMhee4R8xFQdy6OFmmCaSt/u/lSPKFMMUBPnCvreWLGQ csiK3tlhavJ8PZKvny5B7/c6mW88poysg8P7pqQ40xOg/CaAdIhY29JfOiBxz6fCP5Bi mO4JVsbadx6Dz0nGqQdz5SYnvWs1otgSo6dX2AxwElyCqsPsZO7v8IG2Bx7osflDFnvt 9/gJmLlBPjYQYRz7tmac8MFbveYOk00B20SaJopqQh8rKjDAAGWf7H7HsdnuBV+Qrz1O 9ni0u/Vv6Kc3uS/9E1syMevqXvwL862ALE3FLEVIUwlInLrEztbaeN/Jb28d/SZM5FOG pGMg== 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=c9j0yT0NK4upUiSsQbt0GgMW/W9jo7zVWINHRlj+hpg=; fh=8l/2G7DZumXf5aZ/lPiBZBWim2HCp1ubNRmT4fEODgE=; b=A6DyzkmE0DmM9AqSk5h7mYcNC/HJt0YovLGw6INNqRXyqby0MmJtdqpUQkaiQuWOsu +XgyEStMREMqEcHQnMk06y7KmD3pnwN3/XZU0VVfsCa7hJ3mDC2Ex+li9lsfOjKBWqMI M5FbcgzltQRXaeZiXY8K5cmXdwNbdWIDslIkIZYLfxfZD3C3HDT9YJCbhSiMzzoJpdHK sfoFEUy+yty58hd8mSv6Fp9gIb7W9KPfQIOq0nNfp47779UgSRW6xtx4A3yBv0dkBQP0 VwfqhKmINj43ZSF2g5BuGSPX0Qw6Fwyi9kjtb1lV6VUodA8/4QIBaQMiyyJG83SDsmb1 UJlw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mzlZnuPS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101918-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s17-20020a634511000000b005e2707e975asi9668605pga.174.2024.03.13.10.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 10:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mzlZnuPS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-101918-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101918-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3C7D428F35B for ; Wed, 13 Mar 2024 17:15:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C294512AAC1; 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="mzlZnuPS" 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 DD35C129A71; Wed, 13 Mar 2024 16:40:58 +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=ZOLPlpHHMYqROFkKv/xTquGq90RCmew46SZZlfcYHb2Uh0+VOBtUOqXfI5R1IFVibv0u6BEHMeDNuXSYPxuGwzDoZcWoqXAFHZih3vhpKkb96fdPAWHlPjIVEa+e0BIBuA3P4QtCr7Hbf6NrHeu4KWmA0uo3TjcB28Tibe6G16U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348058; c=relaxed/simple; bh=FpeRx9boRT8MSPiDXGUBZqeHsaeq82xaEA/cTWzG/ws=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hcYSkwCa7VVnIsteOsC8WSe0LQYNfOv20la6vdWTkD+ZuNVXLZA534LumZIwHOgl8iJX2ZByB9CT19DgANrEezolNO6HWLct23N4lJtHaFcQNEqXpOqnFuJ7+n06TviOGfgmjRwMF9HYG1qeeMv9ZgQu8Re9it9SpNCzAFuQj2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mzlZnuPS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E39A5C43394; Wed, 13 Mar 2024 16:40:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348058; bh=FpeRx9boRT8MSPiDXGUBZqeHsaeq82xaEA/cTWzG/ws=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mzlZnuPSyaUQVSdOSnquR4+jHsW3jd776cN5e4Is68NCcgwDebknYKqo+oM02hQ+H Q3Z+eiEXNf0X4Mm18hTcgv7FZ1nIx6RZiSsSH0ufehh5M03JBoEPaLHdHTWztS5EyS mZCqG4aXW0n18EHloSxtvy5oBOODDdEUcT7bk9A9Y/xeTACYuVxikyjeeqOu3ydC2R ZlEqMS3nniKS5VonfltpoxPjr2pIuCQcP64d/YTRZ2UcZ4w3ncmXGc6YSRHX/eILEu Zl+mpGu08oTO7hfAzAvDgUlToEj1OaRlylqW8SnuFgZE3hjQ+RGwnHoJo2dUEFEVEL E6iXpf37htbEg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yu Kuai , Christoph Hellwig , Jens Axboe , Sasha Levin Subject: [PATCH 6.1 50/71] blk-wbt: remove unnecessary check in wbt_enable_default() Date: Wed, 13 Mar 2024 12:39:36 -0400 Message-ID: <20240313163957.615276-51-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 b11d31ae01e6b0762b28e645ad6718a12faa8d14 ] If CONFIG_BLK_WBT_MQ is disabled, wbt_init() won't do anything. Signed-off-by: Yu Kuai Reviewed-by: Christoph Hellwig Link: https://lore.kernel.org/r/20221019121518.3865235-3-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/blk-wbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index c293e08b301ff..c5a8c10028a08 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -651,7 +651,7 @@ void wbt_enable_default(struct request_queue *q) if (!blk_queue_registered(q)) return; - if (queue_is_mq(q) && IS_ENABLED(CONFIG_BLK_WBT_MQ)) + if (queue_is_mq(q)) wbt_init(q); } EXPORT_SYMBOL_GPL(wbt_enable_default); -- 2.43.0