Received: by 10.192.165.148 with SMTP id m20csp138391imm; Wed, 9 May 2018 10:02:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpWq8BrvjjTdDYhuQSsYsE77MpLX2PuJeq/WPcXN4OVxg57IeSPnPO+Jqw3BnIYGO6MWhws X-Received: by 2002:a63:7a48:: with SMTP id j8-v6mr1141172pgn.101.1525885379625; Wed, 09 May 2018 10:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525885379; cv=none; d=google.com; s=arc-20160816; b=MgX/3hDCNHJjIwNU2a4aBEIR6+jnjgwSONqzfANLZkigYyOSzYIhXlB02ubIO9vhTc AQXoKFhZuQ1h8Bf1VBZ5a5cvWmhLwDeikq9fx2kYrsPaiV/G6x3lUAxnnwo0v60+4yiW qKt77qcYvbdynACRuugiMf8GOh04rlASpWe9+wuTpvGiLR3cosI8ftY4F2ovnl/4hdR3 nK1LNjqqj2uZI0Ut9p886GfRA4GMjHEt5zI+JB3svki4dlYK88xjpzWTjCGNQ9zU9+XA 7KER/NzMRI0A/WE6W7GS9cJfJpPRXXeBO0luus9uhMGf2hdMXeq3klI4FzF5MJhzYA4R 0zDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=qzhxkSFnlLVMS+qT3ejwpeJnWmbFbw9NA7xY32pbszU=; b=gVHDFB0AhxOH9zQ8uO+Kh24OQrsAmLZEpaVJB0P0Ksbpf38zGXvbYmEKesYKwDUkqI AqfAH6Ly3L9NgJb/UAIm58tFf6BbSp6LuIA6PADGcs5cwFOa6uLxrG/fdcGcw1PGLJLO UI4zOq+pcwsrGGB2E06JGVlktU60+qNJVdWiLh0J1/GtUEU0uhLLKEY/X87PK0tkrIln /RpbRYScwnznTTcdFwvW+OPeqt029OAIg5hxa2KEWSWifhclPvOiyGCiABA1I9Wn1f3o 5C1W09tpP2+HkbtQAwKzdIVFSGXnpOBvLeeRZnLyE9vwwHEj+TQJUM9GAWhMtWSnM5xa sfnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=su4HqH36; 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 t4-v6si16293922pgr.690.2018.05.09.10.02.32; Wed, 09 May 2018 10:02:59 -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-dk.20150623.gappssmtp.com header.s=20150623 header.b=su4HqH36; 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 S965661AbeEIRB5 (ORCPT + 99 others); Wed, 9 May 2018 13:01:57 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:50537 "EHLO mail-it0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935516AbeEIRBz (ORCPT ); Wed, 9 May 2018 13:01:55 -0400 Received: by mail-it0-f42.google.com with SMTP id p3-v6so21263749itc.0 for ; Wed, 09 May 2018 10:01:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qzhxkSFnlLVMS+qT3ejwpeJnWmbFbw9NA7xY32pbszU=; b=su4HqH36YffL7R94HdiVSo1lbgkKsMwMZcV7DgG4GGIS/lpSA2uTkeQzIzmBCGNXiZ bafouvlFXyalT2l66ptJ5wF14XH9UXiU+LWIqKugnlGsMquRtjBTd18iVvacfYYOMwjc BjH6+64VAfk6ebhAtBnoxX4DX7N4KX+2Avr67EhbeKLa11eoJu1oI6X/Hg0rRqRpoySG S3ryLfE99AJudUvH3uIwRIoxUoJQsUjtguf6whu+oey6VSAGa1cJGAPr0xkPTCNGjtW1 r/kQtRmFam1UyGCDZUfMVKs1P69Skud6KkpHcQWYwCIf718l5N7URULzGNPcdsbBcct/ ymSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qzhxkSFnlLVMS+qT3ejwpeJnWmbFbw9NA7xY32pbszU=; b=kphAfogc/mW2ekXQpaIN9nEnLgLhRGg647aKiOv8vVlLRaIOE46OlEI5OwrzQqUWme f9X8Hydmjh6swr7KKGYbmTWL+gplwSRXX3+CjR4mJH4oj7BC1ykle3OHYYPyxSL4hiNa clgGt+Ddc60L0ldG0T2VitMBDFTvhi6SFSIdx/nM+TcnJWRkzUvcMecvqhTsD3kNlE70 +YOejJzgnp70icY080yJ4RnadI3JDc3r4V0R4GKZ5dF6hr45gO72htFemyHM6s4fnQ/X Xq/DbH/0stNdoel+/CX2UldvQ1ItjM7MybmKnt2nujT6iux/jV8xeA+ksGNa9jCUbZp8 fKTA== X-Gm-Message-State: ALQs6tBHKkOeVTUzYpzW0zEhrgVNU5gnuSp+QjyTCROWgjlTdAefGhrB PkGjllfRiTNodVFsrypMsczH+A== X-Received: by 2002:a24:2911:: with SMTP id p17-v6mr10823665itp.37.1525885314836; Wed, 09 May 2018 10:01:54 -0700 (PDT) Received: from [192.168.1.167] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id q6-v6sm4070863ita.44.2018.05.09.10.01.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 10:01:53 -0700 (PDT) Subject: Re: bug in tag handling in blk-mq? To: Mike Galbraith , Paolo Valente Cc: Christoph Hellwig , linux-block , Ulf Hansson , LKML , Linus Walleij , Oleksandr Natalenko References: <999DF2B3-4EE8-4BDF-89C5-EB0C2D8BF69E@linaro.org> <7760d23b-7a4c-a645-1c7a-da7569bb44dc@kernel.dk> <84145CD7-B917-4B32-8A5C-310C1910DB71@linaro.org> <1525755090.24338.1.camel@gmx.de> <1525768632.5208.4.camel@gmx.de> <1525797766.5204.2.camel@gmx.de> <3692ce7d-a767-72e6-65ae-6178b6c2e7d8@kernel.dk> <57952405-bdeb-f4e4-1aef-a7c0a8a68674@kernel.dk> <1525839089.15732.1.camel@gmx.de> <1525885030.15732.6.camel@gmx.de> From: Jens Axboe Message-ID: <1e51eb57-6d9b-a53c-9cd6-2adfc86b21b5@kernel.dk> Date: Wed, 9 May 2018 11:01:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <1525885030.15732.6.camel@gmx.de> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/9/18 10:57 AM, Mike Galbraith wrote: > On Wed, 2018-05-09 at 09:18 -0600, Jens Axboe wrote: >> On 5/8/18 10:11 PM, Mike Galbraith wrote: >>> On Tue, 2018-05-08 at 19:09 -0600, Jens Axboe wrote: >>>> >>>> Alright, I managed to reproduce it. What I think is happening is that >>>> BFQ is limiting the inflight case to something less than the wake >>>> batch for sbitmap, which can lead to stalls. I don't have time to test >>>> this tonight, but perhaps you can give it a go when you are back at it. >>>> If not, I'll try tomorrow morning. >>>> >>>> If this is the issue, I can turn it into a real patch. This is just to >>>> confirm that the issue goes away with the below. >>> >>> Confirmed. Impressive high speed bug stomping. >> >> Well, that's good news. Can I get you to try this patch? > > Sure thing. The original hang (minus provocation patch) being > annoyingly non-deterministic, this will (hopefully) take a while. You can verify with the provocation patch as well first, if you wish. Just need to hand-apply since it'll conflict with this patch in bfq. But it's a trivial resolve. -- Jens Axboe