Received: by 10.192.165.148 with SMTP id m20csp1851142imm; Sun, 6 May 2018 00:43:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqsRT+L9RFYFkRWLiV6CLesEseWOJ7IPDywjzm9d/HADzqTeoixXmqa3KP6Gea29ng0qF5A X-Received: by 2002:a17:902:b40f:: with SMTP id x15-v6mr32917186plr.167.1525592627696; Sun, 06 May 2018 00:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525592627; cv=none; d=google.com; s=arc-20160816; b=xTov7EpH8hNM8h5cmdIrxNHIvSE+u7rAgf/3anezXafOVAPXpmYIDR5Sr97n4GXD4w fbr4o6QAPLxtwPWDgE5SDdICHleTxMhOhFSttXNNMUBt50UwZ0HhdeAIKwMcYxOnAB1n 1bDTtrI3sX2/7UaL9MVcUY/7ADFIim6q5nL15hxPp3g/aheY5SUPC7argnSt4kEFU8pM LV0+9yiHPfocuQa7d1W0FpRyMybnHpMp7Msd7hyxpJ/7VPBoK82f/ShOwRfkPk2Jy4r2 nbWKHNGOIBvWmExjWRWpFYetT48ZHcxVHuh9nUZug1NBK/krKNWF1/Z4DNXFNaLokvC2 WiJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=jn7P9Oj1XLg0q8j147denoSw7hXoYpD2HRDixjuEdyw=; b=W2GUvJz5M/H17Cmeuv9Ai79hCRUfGlphMZT6kKGS4DyfWYNdi3dTQj/DqFHpE2479K aHFnx8aFf5K/tu69YJXZ+C4VYwsZL+wuqJUf0oypsYzUqwKbpyQW0UlWRF7DQyjWCwSS DNeF7RDAgvEfbCi81XlXNvmkkQeDpSRpDP4tHALBDpyRLUxjPIsL65wS00RFL2R8fC4m mOvlji1t/x1bq/24irLgErOTTmlUHG+qqi1M/vyxdhx8M1/OcS9pdCythc+LfCecdJp9 0/2xKtF/IvGH+O5utVq0GH5ygFbGlvOMjlylzV3bdrWWL9PhAtY/G0z4tT7EiNsLcNT5 yrJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aoV5MvJP; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj11-v6si19904421plb.480.2018.05.06.00.43.33; Sun, 06 May 2018 00:43:47 -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=@linaro.org header.s=google header.b=aoV5MvJP; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbeEFHm5 (ORCPT + 99 others); Sun, 6 May 2018 03:42:57 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44281 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeEFHmz (ORCPT ); Sun, 6 May 2018 03:42:55 -0400 Received: by mail-wr0-f196.google.com with SMTP id y15-v6so13131755wrg.11 for ; Sun, 06 May 2018 00:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jn7P9Oj1XLg0q8j147denoSw7hXoYpD2HRDixjuEdyw=; b=aoV5MvJPGtcxKjHgF17WyAJIWS1CyIjCUch3Tv6kwjKBa/B/8PUkGF0dConB8NOnsC inQhgnte4N4Kwq68IEU6cKoUm9rKDx56RKzKN9B5V8SGJvnGavOb2wBRNJZVogqQf6lt 6sKMIlKB9S3CfW6i2LwW1RC3s3q7rA9e0PTOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jn7P9Oj1XLg0q8j147denoSw7hXoYpD2HRDixjuEdyw=; b=KbKnchBOaKu9jtFJP16INUpiDkvKFSbQc+b50u00FhvSVKYfg+73iwxEII0/y4hme6 33QzR/Su+Kc6rzMqCE9XDSfnlTnxJWq7mWF89CX6w2eaLNttmcQudEmxk5XM67NZjvRe NO3fxufkxxz7118/5t3z41xNg7YZ4DvJS+4E9BrblbemhzgLVkTDLtcisEscEMs9bJmP SpV1dOEkDeQKKuj0KYOAKu6QBcC8eJsFJgya+aMB+Xs+BNx/xNqviGhuibgfO7t48LDg DOxQk76pMgjw8D4GLpJNxzGI4wLtEa/BgCsRP3MLuG14tDgaI5dGOvhARjOcVKrxcxs3 FWyQ== X-Gm-Message-State: ALQs6tCZ53ykhKkFCJERbKhsshJS4EyNKZaRJoG3SsZacqSu3ETS50WZ 4Gw1ggT78BR6ASHy2734KCg6kg== X-Received: by 2002:adf:dfcc:: with SMTP id q12-v6mr26135071wrn.68.1525592573991; Sun, 06 May 2018 00:42:53 -0700 (PDT) Received: from [192.168.0.103] (146-241-23-50.dyn.eolo.it. [146.241.23.50]) by smtp.gmail.com with ESMTPSA id p35-v6sm27401462wrb.12.2018.05.06.00.42.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 00:42:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge From: Paolo Valente In-Reply-To: <1525532191.5406.15.camel@gmx.de> Date: Sun, 6 May 2018 09:42:51 +0200 Cc: Jens Axboe , linux-block , LKML , Ulf Hansson , Mark Brown , linus.walleij@linaro.org, bfq-iosched@googlegroups.com, oleksandr@natalenko.name Content-Transfer-Encoding: quoted-printable Message-Id: <223CABEA-71E0-426F-A4AB-17BA8437C978@linaro.org> References: <20180504171701.6876-1-paolo.valente@linaro.org> <1525463210.622.1.camel@gmx.de> <1525508378.5406.6.camel@gmx.de> <9F155F9F-F6B2-465A-BA4D-A86FF6825071@linaro.org> <1525532191.5406.15.camel@gmx.de> To: Mike Galbraith X-Mailer: Apple Mail (2.3445.6.18) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 05 mag 2018, alle ore 16:56, Mike Galbraith = ha scritto: >=20 > On Sat, 2018-05-05 at 12:39 +0200, Paolo Valente wrote: >>=20 >> BTW, if you didn't run out of patience with this permanent issue yet, >> I was thinking of two o three changes to retry to trigger your = failure >> reliably. >=20 > Sure, fire away, I'll happily give the annoying little bugger > opportunities to show its tender belly. I've attached a compressed patch (to avoid possible corruption from my mailer). I'm little confident, but no pain, no gain, right? If possible, apply this patch on top of the fix I proposed in this thread, just to eliminate possible further noise. Finally, the patch content follows. Hoping for a stroke of luck, Paolo diff --git a/block/bfq-mq-iosched.c b/block/bfq-mq-iosched.c index 118f319af7c0..6662efe29b69 100644 --- a/block/bfq-mq-iosched.c +++ b/block/bfq-mq-iosched.c @@ -525,8 +525,13 @@ static void bfq_limit_depth(unsigned int op, struct = blk_mq_alloc_data *data) if (unlikely(bfqd->sb_shift !=3D bt->sb.shift)) bfq_update_depths(bfqd, bt); =20 +#if 0 data->shallow_depth =3D = bfqd->word_depths[!!bfqd->wr_busy_queues][op_is_sync(op)]; +#else + data->shallow_depth =3D 1; +#endif + =20 bfq_log(bfqd, "wr_busy %d sync %d depth %u", bfqd->wr_busy_queues, op_is_sync(op), >=20 > -Mike >=20