Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2152721pxv; Sat, 17 Jul 2021 05:37:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC0KUQnIvot4UQ6wQnl098A0WvFtMAtgZP/DEg0lXHkjxUaadB8rffcOHCMfBGdUii9vGf X-Received: by 2002:a05:6402:22bb:: with SMTP id cx27mr21313572edb.96.1626525467527; Sat, 17 Jul 2021 05:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626525467; cv=none; d=google.com; s=arc-20160816; b=cX0Cty6zqyHxghXV0AA2Dd2WvXGWdAcAGzJQMfH3q1QlWOiHS363ulS6RWlBg6Z6dn Y4ezAjgTQcI3oqbsc03o4KM5zySk65CUGWEdASgelLY8/4+cpCGwbEBuk07SE1Uc1I5O hly/ngIPKjBP4VG9wK1CFUsNwD2jxeFyyPJgk8MztnFCrUxjRsGUQ9OuXfYSkV+qVQLn QTHJO9ZnIz3WUZjQG0AQ/prTfPiy11cfgz3LT7eT3bsVrr2lvrRs7iSJSDRixbqqGfqH 6U4cEy2VNqi2n/RMaNPPwnnlJNDeh7j9qqKLuWfnll54Cs99LCo244Onmn0yh2UCQhiv EGeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pwPW8ZBvYJ1j6+zanxZpBpf+XE4okDGSxJ4O6NxNGC4=; b=vG4bDSkv4lMv5mWw6BdJIV4a/7ERRkkHUIORgHsQL7HT79G6u1B4TxVwWY/m4UN0+5 KNYSIL6Wt/SxfEjLnRj636sxRpopdUf9GmtULqU52DYdWOzoBqOljTk6ui76YSnL/cky OQsC5qzteYfsPRnOitoZIot2M20u5D4oq9EsJRyNdPw6eEGxFHikkaRhR3Iv+j1sda+Q v6vl0ZY7g+RpHpVKPur8bCinDgiCozmooH+WHn6pXzqV4gZx4SD1mECqwHHQDt9eYgh3 ZV4rS6UKtoGxZ/LeFQPNHHQ8inuLfVzZJfqRMIda1k0/6fz85/ojMZLx8TFEFTXszLr4 05gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=OgUN6xJY; 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=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p27si13622200ejn.267.2021.07.17.05.37.24; Sat, 17 Jul 2021 05:37:47 -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=@natalenko.name header.s=dkim-20170712 header.b=OgUN6xJY; 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=REJECT sp=REJECT dis=NONE) header.from=natalenko.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233711AbhGQMiP (ORCPT + 99 others); Sat, 17 Jul 2021 08:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhGQMiO (ORCPT ); Sat, 17 Jul 2021 08:38:14 -0400 Received: from vulcan.natalenko.name (vulcan.natalenko.name [IPv6:2001:19f0:6c00:8846:5400:ff:fe0c:dfa0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70EB6C06175F for ; Sat, 17 Jul 2021 05:35:18 -0700 (PDT) Received: from spock.localnet (unknown [151.237.229.131]) (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 vulcan.natalenko.name (Postfix) with ESMTPSA id DB435B3A141; Sat, 17 Jul 2021 14:35:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1626525316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pwPW8ZBvYJ1j6+zanxZpBpf+XE4okDGSxJ4O6NxNGC4=; b=OgUN6xJYnj2LxCuxDio9SMp9DICiOTdRp2n7hAcLY2ZuQERSVY9LN892F+OClOEZO1Jiqz TW4GliCHxiv9WwwKctKqqFOL8A0bE+g4tBLkrnwBVs2CW7H4MnUl+6h7qlKN52v3IspiVW qzCa3bBmWlkrI3uUXnBzhCkXhusGrLg= From: Oleksandr Natalenko To: Ming Lei Cc: linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, David Jeffery , Laurence Oberman , Paolo Valente , Jan Kara , Sasha Levin , Greg Kroah-Hartman , Keith Busch Subject: Re: New warning in nvme_setup_discard Date: Sat, 17 Jul 2021 14:35:14 +0200 Message-ID: <3383530.3bVf3B8HMu@natalenko.name> In-Reply-To: <8988303.mDXGIdCtx8@natalenko.name> References: <4729812.CpyZKHjjVO@natalenko.name> <5053297.vgnLoh5Ws3@natalenko.name> <8988303.mDXGIdCtx8@natalenko.name> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On sobota 17. =C4=8Dervence 2021 14:19:59 CEST Oleksandr Natalenko wrote: > On sobota 17. =C4=8Dervence 2021 14:11:05 CEST Oleksandr Natalenko wrote: > > On sobota 17. =C4=8Dervence 2021 11:35:32 CEST Ming Lei wrote: > > > Maybe you need to check if the build is OK, I can't reproduce it in my > > > VM, and BFQ is still builtin: > > >=20 > > > [root@ktest-01 ~]# uname -a > > > Linux ktest-01 5.14.0-rc1+ #52 SMP Fri Jul 16 18:56:36 CST 2021 x86_64 > > > x86_64 x86_64 GNU/Linux [root@ktest-01 ~]# cat > > > /sys/block/nvme0n1/queue/scheduler > > > [none] mq-deadline kyber bfq > >=20 > > I don't think this is an issue with the build=E2=80=A6 BTW, with `initc= all_debug`: > >=20 > > ``` > > [ 0.902555] calling bfq_init+0x0/0x8b @ 1 > > [ 0.903448] initcall bfq_init+0x0/0x8b returned -28 after 507 usecs > > ``` > >=20 > > -ENOSPC? Why? Also re-tested with the latest git tip, same result :(. >=20 > OK, one extra pr_info, and I see this: >=20 > ``` > [ 0.871180] blkcg_policy_register: BLKCG_MAX_POLS too small > [ 0.871612] blkcg_policy_register: -28 > ``` >=20 > What does it mean please :)? The value seems to be hard-coded: >=20 > ``` > include/linux/blkdev.h > 60:#define BLKCG_MAX_POLS 5 > ``` OK, after increasing this to 6 I've got my BFQ back. Please see [1]. [1] https://lore.kernel.org/linux-block/20210717123328.945810-1-oleksandr@n= atalenko.name/ =2D-=20 Oleksandr Natalenko (post-factum)