Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5307410yba; Mon, 13 May 2019 08:42:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRHdTcq2yqQwqE+iL2NwjE9zv7QLZoXpA4ddtHGm08QrY/6tgYvaENkinC9loz5AYrHzQk X-Received: by 2002:a62:4e86:: with SMTP id c128mr33702778pfb.39.1557762135108; Mon, 13 May 2019 08:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557762135; cv=none; d=google.com; s=arc-20160816; b=gEGzaUbPr/GmAjzXz4KglmsYzz3AYb0iWSym4RLE+6U3v1fruKzwvDWELTjDSkCL/D 2l+antEnBroilO1VbubyQVVCoDwYAt9M3i1dVDwnGh+pKJvM9HWpw1oDjSkH8J/8u58d NKfFCtdIuvgouapM+hek61Fs8nQ2+B/axkweSqGL3gBljb59gvju0KqEFVa/nA6ZJPnO 9tDyrR4w17pHSKnCl6nXe1c4E3XJNkeM7o8wiYa2xGkGtc0LPtctU3OdmZ78j8Txmhlm abnXaf1ORm7o6B1I5hd1rsSCpoXqVoyyeYongDZc+olQssxmhAk2c6jFGdEdBpk9dDCf sKlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KkqV3CLkW9DHGPmOz1StcnAUfjD+S3y9+yxgb3uPnoE=; b=IqZWIhmEeXG38K3dx8MtN3dh4j+8xkYmCYraP/5FqJhnpMJbS/wbM/sBrvm54NhWoQ MuYKPcrI75SKfmpwuLNpOEiLvgwocpawfCHq0geykLs9+JJvUbPs8M0hYXrWRhAh8RNB ZtQnJ08K7zoJQNqh5bsqGxHnkoLxu0GFxzDPOW0asz8OrhV0MVkEXk/pSNWb4Pb3Jm+K 71BQQO0YO/j8j6PbViVcCBvIQtPJk0wNm2clZAYctcZSID7+DclU+T13kuaW324671QT ctgepiRLOaJsdJ13XugbGdkjhnJ40Hvg+sQ+0fICLeg+uwKQXiS0y13dgIorpHFTqSsP yNYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SscWy466; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si17877811pgk.279.2019.05.13.08.41.58; Mon, 13 May 2019 08:42:15 -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; dkim=pass header.i=@kernel.org header.s=default header.b=SscWy466; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729496AbfEMNJT (ORCPT + 99 others); Mon, 13 May 2019 09:09:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:40680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfEMNJT (ORCPT ); Mon, 13 May 2019 09:09:19 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE68D2084E; Mon, 13 May 2019 13:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557752958; bh=KkqV3CLkW9DHGPmOz1StcnAUfjD+S3y9+yxgb3uPnoE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SscWy4668nXYSqxL+8MfdysR79LlzGGhXYGhD0inJHqgry8Ngg4m2Cx8FyvKRWC1b 6p7widJk5L08+t3cVG62MJIfB5s46aM5yfgLWBHnQs79wNUWWlHfdLiAUtcZj8NwGV cuUUXY8fMwFoz5CUKdxYIKLCrp2v1yqohT5CErso= Date: Mon, 13 May 2019 09:09:16 -0400 From: Sasha Levin To: Greg KH Cc: Eric Wheeler , Paolo Valente , Jens Axboe , "open list:BFQ I/O SCHEDULER" , open list , Eric Wheeler , stable@vger.kernel.org Subject: Re: [PATCH] bfq: backport: update internal depth state when queue depth changes Message-ID: <20190513130916.GB11972@sasha-vm> References: <1557510992-18506-1-git-send-email-stable@lists.ewheeler.net> <20190510201855.GB14410@sasha-vm> <20190513070337.GB26553@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190513070337.GB26553@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 09:03:37AM +0200, Greg KH wrote: >On Fri, May 10, 2019 at 04:18:55PM -0400, Sasha Levin wrote: >> On Fri, May 10, 2019 at 10:56:32AM -0700, Eric Wheeler wrote: >> > From: Jens Axboe >> > >> > commit 77f1e0a52d26242b6c2dba019f6ebebfb9ff701e upstream >> > >> > A previous commit moved the shallow depth and BFQ depth map calculations >> > to be done at init time, moving it outside of the hotter IO path. This >> > potentially causes hangs if the users changes the depth of the scheduler >> > map, by writing to the 'nr_requests' sysfs file for that device. >> > >> > Add a blk-mq-sched hook that allows blk-mq to inform the scheduler if >> > the depth changes, so that the scheduler can update its internal state. >> > >> > Signed-off-by: Eric Wheeler >> > Tested-by: Kai Krakow >> > Reported-by: Paolo Valente >> > Fixes: f0635b8a416e ("bfq: calculate shallow depths at init time") >> > Signed-off-by: Jens Axboe >> > Cc: stable@vger.kernel.org >> >> I wasn't clear on what was backported here, so I've queued the upstream >> version on 4.19 and 4.14, it doesn't seem to be relevant to older >> branches. > >I only see this added to the 5.0 and 4.19 queues, did you forget to push >the 4.14 update? Sorry, I meant to say that I applied it to 5.0 and 4.19. The patch it fixes, f0635b8a416e ("bfq: calculate shallow depths at init time"), isn't in 4.14 nor was it backported there by us. -- Thanks, Sasha