Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5743962ybe; Tue, 17 Sep 2019 12:46:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK/onKd5H/qrDYc5EKBR5guftP8VTFEoK/dYCfpF24xUF4/zunDq18GlgkItitZ+ymjc7E X-Received: by 2002:a17:906:1348:: with SMTP id x8mr6315200ejb.179.1568749587177; Tue, 17 Sep 2019 12:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568749587; cv=none; d=google.com; s=arc-20160816; b=HeMzDR8e6xL/3yf3fTLOpFYXkparRS5Fyw8HUwbe0CG/s8csVXZnT3XtGZ+C1jauHc oVsKUelF9fesx8IPvBPEh9R2aG+KRRv9jw0Rj1yyM7lnW9KpGGeY0jyOVZ1ThxEbbbfE RpCt0Cz0U7fFPod2Tp12PRLoUikKi5SgVQ9mMEgJcm06/Mp+gcojXgb64DTDR8ZXBhBB +RECn+MP5nTJ8fTxTzPkokge6HMeoqdnJ9zeAgsWmvKf6i/aycdC7dwJ2cl3uISp1zdt NkqV7ez0sfBUWra54EQiswPgfqm9p4xEWs3m12lvldXvnSRHHK39EHn2SIIPUDqUI0NJ 3GXg== 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; bh=qNIe53zrgCg2gFdQMfvAbWjy6VVymIDFBP+9g5s+/5Y=; b=Y4GVsLhwX6nqsCKBKIQh2oh6CkK6K33ISRwWA2okABymWHiOMfGhwW/2+tKlra1Oym uH5XjJ8dqghj3hA4AzNSFzTVD1aKWQA5lnQ9WTCeqkBLoFyIcBwewJN3PAECOfAXr2vs WVEi5yyqn+pgDPhtEYO+K7VcqVxwOTRefN8yxUfSyAPrUq4mewO2cTrRfaQyELLLgGBc /i4G4BQME6W1jyhYLHNuYuKZK/0JXksaDwXkSjLOxEv8VjRoqhTs87eKrsJMM21KLvPc gDbXixIZOvDZCox6+53n5JsgocrVVSWq2iO0M6r6zmce7XHi4B8A7KyyZfg1yzjOpudX QXrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=yLz0Vc5U; 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 y19si1606470ejp.196.2019.09.17.12.46.02; Tue, 17 Sep 2019 12:46:27 -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=yLz0Vc5U; 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 S1727277AbfIQScv (ORCPT + 99 others); Tue, 17 Sep 2019 14:32:51 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:41670 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbfIQScu (ORCPT ); Tue, 17 Sep 2019 14:32:50 -0400 Received: by mail-io1-f65.google.com with SMTP id r26so9955201ioh.8 for ; Tue, 17 Sep 2019 11:32:48 -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=qNIe53zrgCg2gFdQMfvAbWjy6VVymIDFBP+9g5s+/5Y=; b=yLz0Vc5U1aO7M/ZcTpzpUb/M/FylLyeSzNkhWs6+dhbqe4TpVMHfVrI2BRMs0Pq6U7 T0p85T4alWTjJHm0Xojwq4P7cWFxs+OjlB/YaiWj9o1pcjKvw51aDzuO+VWqs+BA+wQK g9lwNzve5rdMUpYV5maaStxNBFaPM5sWl/dYLUjnPElt1jnpHrgX22V303IvfbYEr16x JYKGWb8xjTouEglYkck+LANfX05kEhv+ekMY0ASfwzk0ECLjdzzl36QZEZRz7m6H+qdf AmS3EVhaPjmF2ETJuekkDS2DGOIQYelXgQCX8dBScQJBoG/YgoFkJWoq3qe2EROuqzq0 KF2w== 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=qNIe53zrgCg2gFdQMfvAbWjy6VVymIDFBP+9g5s+/5Y=; b=oxSEHv4gWDK+ujDHx43kfpJBUh2DFVVgdLyqNTYyWhMk0ISiCsKZUhXHpKl7RSP6o2 CZxTMhwmTY83H0ZkUtVrjDYyWG7fKieiE0ps45NjyYlbtzsLwG/RYxeeyIDRT5mV7R+m S2h4qUlVpauSAUhQTqnH7BvIcRrdhrB5qizXtuy2B/1j1jiftWdYnfgJHAhFmSkq7A0t tHvGp1kwJ+TQZzgeFAohPk48TPcvUV4kYQDuYPnDXNG0dTtUY8MUYMwgkSvXm13xJOf5 bJ28w7mxqEhA6PGIx8P3dAlMpse8MclfblJ0/m0tlRg7AMkHJ+qyjKiX7PDakJC+C1wc finA== X-Gm-Message-State: APjAAAWuLvzBd8gAbDPkd5Kcqby044Go/INTTkHzOB+KHtS9QTvUiWbK FLSmGWruQP9cq6qc4TCpRjKjpg== X-Received: by 2002:a6b:b487:: with SMTP id d129mr112912iof.223.1568745168066; Tue, 17 Sep 2019 11:32:48 -0700 (PDT) Received: from [192.168.1.50] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id m9sm890768ion.65.2019.09.17.11.32.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Sep 2019 11:32:47 -0700 (PDT) Subject: Re: [bug] __blk_mq_run_hw_queue suspicious rcu usage To: David Rientjes , Christoph Hellwig , Keith Busch Cc: Tom Lendacky , Brijesh Singh , Ming Lei , Peter Gonda , Jianxiong Gao , linux-kernel@vger.kernel.org, x86@kernel.org, iommu@lists.linux-foundation.org References: <20190905060627.GA1753@lst.de> From: Jens Axboe Message-ID: <4cd700ef-f2fc-2bb5-35d2-0b2194accc45@kernel.dk> Date: Tue, 17 Sep 2019 12:32:45 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 9/17/19 12:23 PM, David Rientjes wrote: > On Mon, 16 Sep 2019, David Rientjes wrote: > >> Brijesh and Tom, we currently hit this any time we boot an SEV enabled >> Ubuntu 18.04 guest; I assume that guest kernels, especially those of such >> major distributions, are expected to work with warnings and BUGs when >> certain drivers are enabled. >> >> If the vmap purge lock is to remain a mutex (any other reason that >> unmapping aliases can block?) then it appears that allocating a dmapool >> is the only alternative. Is this something that you'll be addressing >> generically or do we need to get buy-in from the maintainers of this >> specific driver? >> > > We've found that the following applied on top of 5.2.14 suppresses the > warnings. > > Christoph, Keith, Jens, is this something that we could do for the nvme > driver? I'll happily propose it formally if it would be acceptable. No, this is not going to be acceptable, I'm afraid. This tells blk-mq that the driver always needs blocking context for queueing IO, which will increase latencies for the cases where we'd otherwise issue IO directly from the context that queues it. -- Jens Axboe