Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3442386pxv; Sun, 18 Jul 2021 23:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+Q0xcaeEvMPZXR1wcTw8/X14aUja/pKB99xuVq2SGNwexi5fdeZIzvl8HONBclfnjYDYw X-Received: by 2002:a05:6402:13c6:: with SMTP id a6mr32853688edx.213.1626676263776; Sun, 18 Jul 2021 23:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626676263; cv=none; d=google.com; s=arc-20160816; b=bXK4OJFAaihgeUjsvV0keH5RX/EuE1Zb5WCVmHFvD+Ey7jFsLWYq1xmN6ev5M5b0Bk CBpBg6EKiTX5RJEHKnLJYYZGdvsvILrxGrB/YJk9LvpqAJvsNP/DPUMyKnW2uvAKBbjL b/Owck1oYMNkpBxVfHDDhCyAsdgPYy4Jyfkrs5m0ODNRTPNEA/vvF99M9SvQFRUCG8cl PFALA5hxDlRONOdhNg3bDXUVJn7dWimxpbm8ogphtYEQQwJ98ZzzS0yz3DGBQtTCVtuV 8zwLUfzSbsKJa4iN6BpA+ZH0I1r7I/jXqJMf3AyrM8mIalXLo49eKiRZQ+sV88Ctg2uF 5huQ== 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=0v0oBiJSSwI4t8kOgBANJD3E8AfEItyUoFNrqOwtw/k=; b=tawI67gPE+lLO25mKoJPO29Qe8MviY+7OB7w52xqJJNX726RHNqwaAW+de5lfLfuui WcG2eIu/CsfA6jhu38xVyGRK9EvLexghdxkroxn9v6NcvTuLWn4fumslfGP2zoWDTiwM iWRGyhCF1BIgmLP39FilNF8DxGU77X1W9cmokcOxkOtuV7vO+zUHEvph4YqOAyndGfxD 4RAcUCd8h9+01gyv4gBrGLgBgDGJl2VVW2Mh6Blc44aleJW/hfSzeHWMDaHPpWXZ/pBH OOgUb32flGw+vAFhF7BqhJsNWhVfLFhi7qhFZEjfwoi+htF7r3klJWRGQrRz1tfXVebW 7kLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@natalenko.name header.s=dkim-20170712 header.b=CoUK7msW; 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 y8si14263104edw.166.2021.07.18.23.30.41; Sun, 18 Jul 2021 23:31:03 -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=CoUK7msW; 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 S233689AbhGSGag (ORCPT + 99 others); Mon, 19 Jul 2021 02:30:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233052AbhGSGaf (ORCPT ); Mon, 19 Jul 2021 02:30:35 -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 2A64AC061762 for ; Sun, 18 Jul 2021 23:27:36 -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 A7605B3EB05; Mon, 19 Jul 2021 08:27:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=natalenko.name; s=dkim-20170712; t=1626676052; 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=0v0oBiJSSwI4t8kOgBANJD3E8AfEItyUoFNrqOwtw/k=; b=CoUK7msWh4ZR8H9c9RULRkAEDiRFhiKF79kXZfsJXWHsy4xyGPj7euxv1SxESTXSurfVJ2 9yzwjpzRuR8K5KLYrgj9tpr0+Hdy71qL4lz3gjGV/b5I7zWpZsgIAMwfyiBZt4xIqcsJL8 il/H9M4DRQvsbu6jP2oHzKYsypN1nyI= 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: Mon, 19 Jul 2021 08:27:29 +0200 Message-ID: <2407736.Le3fEKZpXq@natalenko.name> In-Reply-To: References: <4729812.CpyZKHjjVO@natalenko.name> <3383530.3bVf3B8HMu@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 Hello. On pond=C4=9Bl=C3=AD 19. =C4=8Dervence 2021 3:40:40 CEST Ming Lei wrote: > On Sat, Jul 17, 2021 at 02:35:14PM +0200, Oleksandr Natalenko wrote: > > On sobota 17. =C4=8Dervence 2021 14:19:59 CEST Oleksandr Natalenko wrot= e: > > > On sobota 17. =C4=8Dervence 2021 14:11:05 CEST Oleksandr Natalenko wr= ote: > > > > 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 > > > > `initcall_debug`: > > > >=20 > > > > ``` > > > > [ 0.902555] calling bfq_init+0x0/0x8b @ 1 > > > > [ 0.903448] initcall bfq_init+0x0/0x8b returned -28 after 507 us= ecs > > > > ``` > > > >=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 > > > ``` > >=20 > > OK, after increasing this to 6 I've got my BFQ back. Please see [1]. > >=20 > > [1] > > https://lore.kernel.org/linux-block/20210717123328.945810-1-oleksandr@n= at > > alenko.name/ > OK, after you fixed the issue in blkcg_policy_register(), can you > reproduce the discard issue on v5.14-rc1 with BFQ applied? If yes, > can you test the patch I posted previously? Yes, the issue is reproducible with both v5.13.2 and v5.14-rc1. I haven't=20 managed to reproduce it with v5.13.2+your patch. Now I will build v5.14- rc2+your patch and test further. Thanks. =2D-=20 Oleksandr Natalenko (post-factum)