Received: by 10.223.148.5 with SMTP id 5csp7991811wrq; Thu, 18 Jan 2018 12:11:53 -0800 (PST) X-Google-Smtp-Source: ACJfBosDa2pCPcN8KpuQjtPESVWxuLujj4vQuyPEpRyQ71GaH68L/Br4OYciQJtCj8ezStKQR4RW X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr347573plc.20.1516306313155; Thu, 18 Jan 2018 12:11:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516306313; cv=none; d=google.com; s=arc-20160816; b=SjQMuTdnhPPM2GOi8MHxCna/QviL1VdmAJN3GuCdwp7EuQ7U7w1LLM7UN3Tingkbni SwJe1wtPNUc2/7kA6f+r6G0qEAV669yxLbjDJ6NbcK330Mj9geZYQJXAmRDzCI1zt9n2 yb0uUr63DAWGcrXVqAAmPOVZDPXyEWocsYgJ8StH1mV5txrsly9zUrDBQUPt8qwYD+WC sV5aQtahom0F//Hbbr1Jf9wFeRNGGZBGjVZQ4b/5QCM1FFrvvEdj4ChHAUzqYsFfLXjG 6xaA0o7X9q02eqO+Ym6LrqOOIKQAfTLbTo24BovTFjPDBqM2eVbh8ZISRvvd383yiY1A CdWw== 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=PScDLoPvt0YCEDp+tOsvMbORCQF44VikVQyS7DlqRr8=; b=p8y+hRcWKh0Lsep2w7sqsgb97fPXMYaYYmf+jj3skri/vzik6ssHzox+XRecRpoF4h yp1EnXVKp8sLjWDm6ZaispDO7Sksahf1PnAZ2l5xdHlAg7hf6378XrTbfNvYnSaByUyH ep6oDAZpSn/KwBQADe7FypQzuHQjyHynKo9bDE9puztQnXGiyb/tQF6YIGgyQJIAOjQL Mxnv7FOWMGvfgfsqM66QsXDSDXN0p8gwJS6AqFNObyUSBb6gxnGM/h669mXtfQl8e0bL Ycy4Vtd5uni5sCFxSo+gg/H+5oB9mFw/j7Y99O4usWsOfUinOHbSyDCFtGX2d5vJghb3 gpSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=RfHcRWI2; 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 i1si6444250pgq.829.2018.01.18.12.11.36; Thu, 18 Jan 2018 12:11:53 -0800 (PST) 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=RfHcRWI2; 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 S932822AbeARULH (ORCPT + 99 others); Thu, 18 Jan 2018 15:11:07 -0500 Received: from mail-pg0-f52.google.com ([74.125.83.52]:40368 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755001AbeARULF (ORCPT ); Thu, 18 Jan 2018 15:11:05 -0500 Received: by mail-pg0-f52.google.com with SMTP id g16so8585076pgn.7 for ; Thu, 18 Jan 2018 12:11:05 -0800 (PST) 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=PScDLoPvt0YCEDp+tOsvMbORCQF44VikVQyS7DlqRr8=; b=RfHcRWI2PrX6njqBGwrYYFNmnfbvX40oa7qyUOXj061dr4HGKcDvxC+H5QobGQxt/3 OMoVi/XJ6pPVdd7gJW83yIfiAT1ccuFcx7kBNUOInu/X6+chp28NudeQL1AwYoKOZBr6 k83pOqcOplSBqlhPErg6WKzRurOVcQzpvw9lyJv9ADMa9zIvgA5RZv56dW0RN5H3sdbG SYijydpxcerrSq9r5dOKiP5WZYLwCUUasSr0bIEkpsf3C/7invVauzaBH18akPhDxLrL VGnH5cLOiW3VvcF0kEZxy9N7Fj0UXO96qVefEcF8DlNZQWnl7pmvU/cFQgcTBCRdUfSa b36A== 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=PScDLoPvt0YCEDp+tOsvMbORCQF44VikVQyS7DlqRr8=; b=RxOpWiATBsb2eGfeyiGDxhI88tgM+u6KOU4lKqK3PLE1UvzmKE5iOSZ7Z7a+gy/1Bg Rxf/HJsV5BR7gT37EeJ4PyOwCsmxGq4C5YKewkLncSiPTuf2pFHNKkME9d9PMXTNvraF X/+TIaDLIty1epUQxxLM4TEMcQVlR92WdY64wPxLFqyumTtMXPakMMWnpi2UCDsdPy8e 1gseZYP8gvEPBhqS7z2rTQCYFRgWCvYUd63lMr+7Cvxvx/QaGufegaY+7KcEOODZRtXD Te8BFP30t0h2GHAiZzJhsijjND7CLuJjHRQnqX0tEWOAhtn2JXB/VHv8b57Zjsz0q54J WCWQ== X-Gm-Message-State: AKwxytckVmEDR7uxcPSX8ziMLgv6XuAiCXOjm6q1xH3o7oCujVc7u/93 qHTk4/2nvneGa9W824kcidkHyg== X-Received: by 2002:a17:902:ab8f:: with SMTP id f15-v6mr343096plr.214.1516306264638; Thu, 18 Jan 2018 12:11:04 -0800 (PST) Received: from ?IPv6:2620:10d:c081:1130::1246? ([2620:10d:c090:180::5db4]) by smtp.gmail.com with ESMTPSA id a15sm15549902pfl.98.2018.01.18.12.11.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 12:11:03 -0800 (PST) Subject: Re: [RFC PATCH] blk-mq: fixup RESTART when queue becomes idle To: Bart Van Assche , "snitzer@redhat.com" Cc: "dm-devel@redhat.com" , "hch@infradead.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "osandov@fb.com" , "ming.lei@redhat.com" References: <20180118024124.8079-1-ming.lei@redhat.com> <20180118170353.GB19734@redhat.com> <1516296056.2676.23.camel@wdc.com> <20180118183039.GA20121@redhat.com> <1516301278.2676.35.camel@wdc.com> From: Jens Axboe Message-ID: Date: Thu, 18 Jan 2018 13:11:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 MIME-Version: 1.0 In-Reply-To: <1516301278.2676.35.camel@wdc.com> Content-Type: text/plain; charset=utf-8 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 1/18/18 11:47 AM, Bart Van Assche wrote: >> This is all very tiresome. > > Yes, this is tiresome. It is very annoying to me that others keep > introducing so many regressions in such important parts of the kernel. > It is also annoying to me that I get blamed if I report a regression > instead of seeing that the regression gets fixed. I agree, it sucks that any change there introduces the regression. I'm fine with doing the delay insert again until a new patch is proven to be better. From the original topic of this email, we have conditions that can cause the driver to not be able to submit an IO. A set of those conditions can only happen if IO is in flight, and those cases we have covered just fine. Another set can potentially trigger without IO being in flight. These are cases where a non-device resource is unavailable at the time of submission. This might be iommu running out of space, for instance, or it might be a memory allocation of some sort. For these cases, we don't get any notification when the shortage clears. All we can do is ensure that we restart operations at some point in the future. We're SOL at that point, but we have to ensure that we make forward progress. That last set of conditions better not be a a common occurence, since performance is down the toilet at that point. I don't want to introduce hot path code to rectify it. Have the driver return if that happens in a way that is DIFFERENT from needing a normal restart. The driver knows if this is a resource that will become available when IO completes on this device or not. If we get that return, we have a generic run-again delay. This basically becomes the same as doing the delay queue thing from DM, but just in a generic fashion. -- Jens Axboe