Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4305395imm; Tue, 11 Sep 2018 09:51:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbpw5c0TtZPvqJ2+tbsVY07v+c+U8LGXXcxSFa/Xe498HO70RhZZVfXZlUMCtGX3DJoYvK X-Received: by 2002:a63:1d47:: with SMTP id d7-v6mr29395785pgm.180.1536684717608; Tue, 11 Sep 2018 09:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536684717; cv=none; d=google.com; s=arc-20160816; b=emQ9VbBqTg+vGv3y4IbF0fW4iXJlUQbBKKcO/JBP2aRUotva5MNEWUGKpSggNuA7Wy V3UH6fxdrlTI4nLQREWIF7mgt6c9uKtJN+NyTUSRXBU+6FBujhTrUwp+Zy/R54bDab/R ciUSNX6Yg9z5Z7hlOmqgZ8PDeL5NuaV8UFxc2HgXRVMY9VX0KI1oliT3sPOi802aT17M YvQbuYIO063zKJnjk8s7yVZ5HpmPNXgIomb+PfFhefUMjovvbOgjbUta7FmHUs596FsD ZvvYqyYU4dHmjsTmzj3rE0Asc8iK8+jPaVKObjk9ClU5YcbAS53wAy9CVl1/weQpiUPl OeAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=WBwsmcV6WIaixohvNb40TX7jdINnSIAz0rdSRTegHeI=; b=TeyzCmJM9OQpdv0iarL9CwNAOLTUTG4uMTPUliHRxhtKjWWsBNAiCChUKro9MpzidW DQTOvwMKLX7QBTIhJmcqTXGAuDgXQvjM4L2pqfGn96W82BPZ87jLZ1nT3sQxnTw4WZeH hzv4bxYG0SaYNeptdOE5XDkPAKRG3h4s2ktC7FbVaY3CCuOqI5JEXaokD24/zy7sZRGi OMXC16pwpyGN68x3Xe+iXVTz7okA4kMxEJJYHtPXDgP65ieyVMb+fvcM1IE+ay1pbJWw B4YUX9lij9aBxgnwYaILZtOvur7567KniUT3DjsATjEUCuwIk3fB80xPNSWZstWPJHNK 77YA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x61-v6si20962824plb.216.2018.09.11.09.51.41; Tue, 11 Sep 2018 09:51:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728057AbeIKVvj (ORCPT + 99 others); Tue, 11 Sep 2018 17:51:39 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726622AbeIKVvi (ORCPT ); Tue, 11 Sep 2018 17:51:38 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3E6927DAC2; Tue, 11 Sep 2018 16:51:28 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 11ADC10073D6; Tue, 11 Sep 2018 16:51:28 +0000 (UTC) From: Jeff Moyer To: Jens Axboe Cc: Takashi Iwai , Paolo Valente , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] bfq probe failed on 4.19-rc3 References: <8b5a7dc9-2dc1-16ee-4b05-a72eb6680c77@kernel.dk> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Tue, 11 Sep 2018 12:51:27 -0400 In-Reply-To: (Jens Axboe's message of "Tue, 11 Sep 2018 10:49:05 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 11 Sep 2018 16:51:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 11 Sep 2018 16:51:28 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jmoyer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens Axboe writes: > On 9/11/18 10:48 AM, Jeff Moyer wrote: >> Jens Axboe writes: >> >>> On 9/11/18 10:03 AM, Takashi Iwai wrote: >>>> Hi, >>>> >>>> I noticed that bfq doesn't appear in the I/O scheduler list on >>>> 4.19-rc3. It seems that blkcg_policy_register() at the beginning of >>>> bfq_init() returns -ENOSPC, hence the probe aborts silently. >>>> >>>> Is this already addressed? >>> >>> Haven't heard about this one before. What kernel did you last use that >>> worked? >> >> I'm guessing you just need to update the maximum number of policies: >> >> /* >> * Maximum number of blkcg policies allowed to be registered concurrently. >> * Defined here to simplify include dependency. >> */ >> #define BLKCG_MAX_POLS 3 > > That is my guess too, hence the suggestion to try and disable the > iolatency policy. Just tried here without, and it works, rebooting > with to verify that we're running out of policy slots. Functions calling this function: blkcg_policy_register File Function Line 0 block/bfq-iosched.c bfq_init 5675 ret = blkcg_policy_register(&blkcg_pol icy_bfq); 1 block/blk-iolatency.c iolatency_init 946 return blkcg_policy_register(&blkcg_pol icy_iolatency); 2 block/blk-throttle.c throtl_init 2511 return blkcg_policy_register(&blkcg_pol icy_throtl); 3 block/cfq-iosched.c cfq_init 4869 ret = blkcg_policy_register(&blkcg_pol icy_cfq); And then there were 4... -Jeff