Received: by 10.223.176.5 with SMTP id f5csp478703wra; Wed, 7 Feb 2018 02:29:01 -0800 (PST) X-Google-Smtp-Source: AH8x224hAG6bQG1cnjWj1EZigUVwBbueVKvH6H/iKIo3uD9NjiKtYEhdvOtpODUwnMsowo4KOBiA X-Received: by 10.101.66.76 with SMTP id d12mr4436861pgq.45.1517999340917; Wed, 07 Feb 2018 02:29:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517999340; cv=none; d=google.com; s=arc-20160816; b=taXULV8bZSzB3tQaf2H4K234sBVWjGqB7pOrdk8+x43ZCHrbjvUhsA48tnpeqyk+yQ fH8Fk+mzzST3reBWyTghsaxxsR79Yf2Efv75r4SSv9AtRMjt8G4sW1DiBBU5prJ8+2Ob Km8AwzmPYC1WrdK8wb9PHDmXOpGsEK4RxifKB7Xv9hTmDsk9hXp5PYS5BrKOe/FtnO1K RKujL6PAdUNxfxQZwevbryLkewKBQzbI+lS9Ytefzq7g3x+BZ0O5fMNuDZKcbiQzqT0E e9g7OcMMcXwH+FrEpmo8Hbfg9tu3jaquS2MaCTqiPnlo6WKhs99louRr8RjGdAqa7SVA XmhQ== 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=m1H4OuOp82GQ554dNwYtbWq2hXIsTQzyDsgx9+zQMtI=; b=rCYaBfiZFiXRsHOnrYu9WIziQoaXTK/g1wHjSml/5ruzrGo2Xb0to9gU8sRJNj8fg8 IYYNkwZnXXW1l7WNTQn/IZLcaLI/xDIQS7NeIyqA30hQH3pVMPadpzL2IMMR4Y51Sm1Q AmyJlG8+dzJ6yNvuP3fat5JGhpuMrSos1GrFIruQ1sgjmOoJvKU2TDya4KXuC+YShYVK k1o1bU6Bi4frkMwpqgXUdpxW9CIkZfU3QZAKakqaXlo/p+TGm1JgCkPC3NKbEe7l860b QUCpJAHPEv2kIU4SYvK6Lao5c3pO1DRLH0wJeA1kzCwkKrsa/X5bSNIeZCs2I1i4c20m /5Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DATfLi6E; 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 t17-v6si864976plo.620.2018.02.07.02.28.46; Wed, 07 Feb 2018 02:29:00 -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=@linaro.org header.s=google header.b=DATfLi6E; 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 S1753702AbeBGK2G (ORCPT + 99 others); Wed, 7 Feb 2018 05:28:06 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:50924 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753564AbeBGK2D (ORCPT ); Wed, 7 Feb 2018 05:28:03 -0500 Received: by mail-wm0-f48.google.com with SMTP id f71so2167438wmf.0 for ; Wed, 07 Feb 2018 02:28:02 -0800 (PST) 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=m1H4OuOp82GQ554dNwYtbWq2hXIsTQzyDsgx9+zQMtI=; b=DATfLi6Et0ldK5h6CrqECZwnqpQ01jLNe+3O3eLLUAv2Qitlvu+oNBz/g9tDYwC0so wVb08ggHm7S1cGEX7oPAGeq1YtDsL180Ue1IlDWeai/czfObMF4DwcBPdfO0ShuWqwDj TOe1EyZTTyujC7IJ8shsL5Hvb6zMBiR0u1VzU= 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=m1H4OuOp82GQ554dNwYtbWq2hXIsTQzyDsgx9+zQMtI=; b=Uiou6xKmbyrt0SdS/xZwQwwm2JbYaf1KbWWdfBaROxA1Hiaq9fc4NqhmGVV90gbCWO tN5Blh/Hj0TUnLRvIGpk5DOR6prRqYViWaIO4ccPo10O2Hw6loYYc4l/0SCWHodNM/k0 e5px6ZMO6O2obTrpOq3J2bUWqxndWzJBDJBa2CQkUp59npbkcsR//VJFq9z/aqaCUOoa spXbjJ3OKkrEihrQC4yneZ0jPzeVPKuwjGbMQ9xxnW3uDP9EELqP6bfImVq4sTwoGMvb /xDhxmYZT6NA5Bua1032xN4KcNQ0/+7GmbYUIdhKtl6U2wQERAhDd/JkqzFpt2T1RKXy 4Z3Q== X-Gm-Message-State: APf1xPDPuZaDionexhTYIPGKiFnZhpXmJfPNQ/JU+BezG9TT3Zgxb2Sf FhDvjDy903AqgEaRDDgtFMj2Pw== X-Received: by 10.28.180.4 with SMTP id d4mr4702235wmf.13.1517999281907; Wed, 07 Feb 2018 02:28:01 -0800 (PST) Received: from [192.168.0.100] (146-241-57-178.dyn.eolo.it. [146.241.57.178]) by smtp.gmail.com with ESMTPSA id n2sm744884wra.41.2018.02.07.02.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 02:28:01 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH BUGFIX 1/1] block, bfq: add requeue-request hook From: Paolo Valente In-Reply-To: <1517998516.6606.1.camel@gmx.de> Date: Wed, 7 Feb 2018 11:27:56 +0100 Cc: Oleksandr Natalenko , Jens Axboe , linux-block , Linux Kernel Mailing List , Ulf Hansson , Mark Brown , Linus Walleij , 'Paolo Valente' via bfq-iosched , Alban Browaeys , Ming Lei , Ivan Kozik , SERENA ZIVIANI <169364@studenti.unimore.it>, Serena Ziviani , =?utf-8?Q?Holger_Hoffst=C3=A4tte?= Content-Transfer-Encoding: quoted-printable Message-Id: <5584030F-8F4E-4C98-84A5-79873A1BF775@linaro.org> References: <20180205190510.5499-1-paolo.valente@linaro.org> <20180205190510.5499-2-paolo.valente@linaro.org> <1517903761.9843.12.camel@gmx.de> <899B68CC-5955-4418-8BFF-DC55A743A61B@linaro.org> <1517918234.25841.31.camel@gmx.de> <77124223e6116350a5184a5199850304@natalenko.name> <1517924768.25841.32.camel@gmx.de> <8842084cc8a26b7f46ae600bda8a7bd0@natalenko.name> <82ffc96aacc3945861cbb708df346338@natalenko.name> <1517995431.25619.5.camel@gmx.de> <1517998516.6606.1.camel@gmx.de> To: Mike Galbraith X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Il giorno 07 feb 2018, alle ore 11:15, Mike Galbraith = ha scritto: >=20 > On Wed, 2018-02-07 at 10:45 +0100, Paolo Valente wrote: >>=20 >>> Il giorno 07 feb 2018, alle ore 10:23, Mike Galbraith = ha scritto: >>>=20 >>> On Wed, 2018-02-07 at 10:08 +0100, Paolo Valente wrote: >>>>=20 >>>> The first piece of information I need is whether this failure = happens >>>> even without "BFQ hierarchical scheduling support". >>>=20 >>> I presume you mean BFQ_GROUP_IOSCHED, which I do not have enabled. >>>=20 >>=20 >> Great (so to speak), this saves us one step. >>=20 >> So, here's my next request for help: please apply the attached patch >> (compressed to preserve it from my email client) and retry. It adds >> several anomaly checks. I hope I have not added any false-positive >> check. >=20 > kernel BUG at block/bfq-iosched.c:4742! >=20 > 4742 BUG_ON(!(rq->rq_flags & RQF_ELVPRIV)); Oh my, this is as crazy as, fortunately, easy to fix. The problem is that this is easy to fix in bfq, but increases the doubts I have expressed in my cover letter: is it ok that, in blk-mq, the functions of an elevator may get invoked, without control, on requests that do not belong to that elevator? Anyway, two requests, Mike, if you haven't had enough already: 1. Could you paste a stack trace for this OOPS, just to understand how = we get there? 2. Could you please turn that BUG_ON into: if (!(rq->rq_flags & RQF_ELVPRIV)) return; and see what happens? Thanks a lot, Paolo=