Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5164163imm; Wed, 12 Sep 2018 01:59:12 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb7rKLun2Z9CneTuB42PJ9+3IM6xHnfjjvn9uhzYbZ9UQycbSFYg47lPsCr9XR1c2kiflWj X-Received: by 2002:a63:5815:: with SMTP id m21-v6mr1034684pgb.78.1536742752256; Wed, 12 Sep 2018 01:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536742752; cv=none; d=google.com; s=arc-20160816; b=dxO1xEpPGsBx/aXBY5ihtiOWUXi6RIbp0TfvBJm0PZl+rCOjxBAZ7/bAZy+/49RVV6 6Dtiv6285mei+Zp9GNSZXPU+jeF/XEhgb/Hr6RZrD6X4MGz3MOFUQVlPHf7kn/r+pU2i kLwF4EKrCOfqmXtDHMQpyr4JZI5/CI+zE3tV9+UiO39MykzNaAurwfz9ZaR9PtLpEnYK VG5znqYeYluHqnBtkrXMS7VpC5HcMDOjIvcnVM21nvLTv7yGRvp5xzNpt8KaDupuC8/W rco/fGmMso/uzaQVh5cfi9kpCNEjqCAqLCIFETayDCVFNNJfSe7B+Xofm7g5LjnW+YaN W5PA== 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:references :in-reply-to:subject:cc:to:from:message-id:date; bh=iwvCy5FuOeMml8/p5FAjxm1RT7nsKJaKShUdp7Lm14k=; b=sgUIyjRa0+aiVrPSlwsY6smGYoXhqboAQsQi3N4NXoeNJD/FwrFSs+wrBbM1Hpaorh pQOyKm4wCssz6rWO8dxa3FGpGMq8yhh3VCSsDGw8xrrxEebekiq3/WfUKLg0noUzb0pp o8ex2juxwSrNbsRw0EDlmyLsgpukdEgBzKQ221pBZ2bJsvAKbGlZzmQv8B0/aw1NDGMw Yq/vTS03aS0mknJYC7+/7NFLYeVqR/xlDdXvd1QRngDyRPfvobZK4WxVwW61ijkj+qu3 BzyTSwFsJ62CbK2jfitkVtUUZ4Sr4QiRsBdBJeXtXeLgGhiRzD89Pf36JSYAJUp7Vkte YcBg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si393025pln.232.2018.09.12.01.58.57; Wed, 12 Sep 2018 01:59:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727752AbeILOCV (ORCPT + 99 others); Wed, 12 Sep 2018 10:02:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:47504 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726624AbeILOCV (ORCPT ); Wed, 12 Sep 2018 10:02:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3910AB016; Wed, 12 Sep 2018 08:58:46 +0000 (UTC) Date: Wed, 12 Sep 2018 10:58:45 +0200 Message-ID: From: Takashi Iwai To: Jens Axboe Cc: Jeff Moyer , Paolo Valente , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] bfq probe failed on 4.19-rc3 In-Reply-To: <8d5f3ab2-50e8-226c-8ccb-c722872910db@kernel.dk> References: <8b5a7dc9-2dc1-16ee-4b05-a72eb6680c77@kernel.dk> <8d5f3ab2-50e8-226c-8ccb-c722872910db@kernel.dk> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/26 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Sep 2018 18:54:19 +0200, Jens Axboe wrote: > > On 9/11/18 10:51 AM, Jeff Moyer wrote: > > 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... > > Exactly. I'd bump it to 5 to leave room for one more, if we have to grow it > again, probably worth it to make it dynamic. So for, not really needed. Takashi, > can verify that the below fixes it up for you? Yes, it works. Tested-by: Takashi Iwai Thanks! Takashi