Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2169830imu; Sat, 8 Dec 2018 16:51:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/XzgB+DhPVywXk99MwtaKmw/H022j0TD+i68L6cp5qiR0jcyRif+0F885+g7OnD/gXjjJJr X-Received: by 2002:a63:9d05:: with SMTP id i5mr6013454pgd.98.1544316682952; Sat, 08 Dec 2018 16:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544316682; cv=none; d=google.com; s=arc-20160816; b=zMCi9cC0WUGcJVNNcp4hg7/fxjre0peLFnpxmNtjQGkqvwXxi/dUyBSDItasipo17T HJwECh7WJHaZ0UtaNXgFnxA8t6+yhoXOh+71OmxgTRgpnRN/R6+QCk/JaN7erU0wMnWC BUDaRysXvByqLRyQLfXyGOum5+qV8BYO29vhxxjJNzmcER//UeY5uAuW6gRUTa18Njkd NfwChtECLfAz1jwT6FBmQynqJYI1Dwiu9vWKri2O0C1QRvFY9bpGBaJlzqw5kepSDQKt gV14dgLIN/z8aGmyZuE1c9d5wWDcipFPLUIClaiw6lS58etXOa8DRmso+eaal5pAQbAX 1v2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=wfMF8LevxtKbE2Z/fXg+jLTj/kdGEjzeFbHK4/vn/TQ=; b=xXoaWCjQ651bZa3Vz935b2ZgtQaUSMDHkrhiyy9l7AvDXqIDfEXrJftRuXHoiebIMm cm+WW/5qERVIxvxy0RviYUzRQ4GfkQk1RI/HiXDLPjSygXzv2Wp0RNSlLLs/R81pOY+B r1mFY/uLWR6XgdydQUxkVcMYP2MoUpn2OSZhmfJrO2TEpNzuCo5ps5+axPfRsAv2AI2W SYRb9gETMM7qtJMQgRzoaAeSiEdWvNY9LW4lrB+Tp4oDhxbtlkvJblILQf+zto1Jqsyz ruU8WHMLoNTf1MWVm8U2iQKU07qSVII5w2IDUBSli7XhwchI1bjMBG9DzbwFvlV1HrEx HNqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=tiLxvskR; 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 t65si7124468pfd.246.2018.12.08.16.50.54; Sat, 08 Dec 2018 16:51:22 -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=fail header.i=@gmail.com header.s=20161025 header.b=tiLxvskR; 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 S1726056AbeLIAt4 (ORCPT + 99 others); Sat, 8 Dec 2018 19:49:56 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33490 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbeLIAt4 (ORCPT ); Sat, 8 Dec 2018 19:49:56 -0500 Received: by mail-pg1-f194.google.com with SMTP id z11so3340014pgu.0 for ; Sat, 08 Dec 2018 16:49:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=wfMF8LevxtKbE2Z/fXg+jLTj/kdGEjzeFbHK4/vn/TQ=; b=tiLxvskRfEOSuuSvVQCYdVwFXFVz6zO+x8xNItX7nn3vUpprM2uk12GBS42Ac3HQ0e y28AT9V8bAzDPwdQYBcuWGgJrG/57ZK1s7dH+HKc3RHO97/A7922dpZ6pFHfYHtsyL4/ +a6kH2yKp6zEhpDPVzPhqeeC1cmZVGceP8F2rROdRhh67SObzzwtutPdtkGk4p1nGn/5 7dYme2d9ft+4FWGPdviMb7BtntttbheAEkOqsBsKbFcYXTzXMgX/2JVzkXMckKvkXHPM JI4BPmekjWrM3GaGiQQCvjedDgvIb2K6dRHG1oxYocdL87IBgZilsNUSubkc00ksysVj T9Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition:user-agent; bh=wfMF8LevxtKbE2Z/fXg+jLTj/kdGEjzeFbHK4/vn/TQ=; b=SSw3e6wQShjuCsf2OrHk22MKVP0Ggdh3tOZkRULtDW9rX/8LCjfgMmI7JlwQUOCVEA eAoPkTnR9DxhOdA4agYNrI7rK85+U9S7OII6E6bKZfKfXMGl9EQslDmiTd2dc3/3+Oy2 XEUgo3GNqrTxxa6J8AFZ2U+DJo7PyLtwiTh50311f1k3e+FO68AVM5b41Mpwqbohu6xU qNIpi+o+wY2O0/NOD4sduV1x0hAEVUd++L7rOjF59LUKzSnbBQlNUpTcTJWpGQk0scKb 7rU+Wfhl/ah2jHoHB+1UuWq7of4P7rd/OH3Aa9kOwg+g2gI5RRIuode0Oqg2C31oou38 IqsA== X-Gm-Message-State: AA+aEWa+zWLphfoh6leeJHGLRczyL7YHuXJE0xeRpBLaPUxRzoE5Xm9U avmZ5+jXhCNzFeRJ1o5tfB8= X-Received: by 2002:a65:57cb:: with SMTP id q11mr6556727pgr.60.1544316595354; Sat, 08 Dec 2018 16:49:55 -0800 (PST) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id n186sm10179755pfn.137.2018.12.08.16.49.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Dec 2018 16:49:54 -0800 (PST) Date: Sat, 8 Dec 2018 16:49:53 -0800 From: Guenter Roeck To: Jens Axboe Cc: Christoph Hellwig , Keith Busch , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme: default to 0 poll queues Message-ID: <20181209004953.GA11638@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Nov 19, 2018 at 08:18:24AM -0700, Jens Axboe wrote: > We need a better way of configuring this, and given that polling is > (still) a bit niche, let's default to using 0 poll queues. That way > we'll have the same read/write/poll behavior as 4.20, and users that > want to test/use polling are required to do manual configuration of the > number of poll queues. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Jens Axboe > --- This patch results in a boot stall when booting parisc (hppa) images from nvme in qemu. ... Fusion MPT SAS Host driver 3.04.20 rcu: INFO: rcu_sched detected stalls on CPUs/tasks: rcu: (detected by 0, t=5252 jiffies, g=141, q=22) rcu: All QSes seen, last rcu_sched kthread activity 5252 (-66742--71994), jiffies_till_next_fqs=1, root ->qsmask 0x0 kworker/u8:3 R running task 0 85 2 0x00000004 Workqueue: nvme-reset-wq nvme_reset_work Backtrace: [<10190d20>] show_stack+0x28/0x38 [<101dd1e0>] sched_show_task.part.3+0xc4/0x144 [<101dd290>] sched_show_task+0x30/0x38 [<10221e18>] rcu_check_callbacks+0x760/0x7a4 rcu: rcu_sched kthread starved for 5252 jiffies! g141 f0x2 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0 rcu: RCU grace-period kthread stack dump: rcu_sched R running task 0 10 2 0x00000000 Backtrace: [<10995b1c>] __schedule+0x214/0x648 [<10995f94>] schedule+0x44/0xa8 [<1099a7c4>] schedule_timeout+0x114/0x1a0 [<10220e70>] rcu_gp_kthread+0x744/0x968 [<101d5438>] kthread+0x154/0x15c [<1019501c>] ret_from_kernel_thread+0x1c/0x24 [ continued ] This is only seen in SMP configurations; non-SMP configurations are ok. Reverting the patch fixes the problem. v4.20-rcX and earlier kernels also boot without problems. For reference, here is the qemu command line. This is with qemu 3.0. qemu-system-hppa -kernel vmlinux -no-reboot \ -snapshot \ -device nvme,serial=foo,drive=d0 \ -drive file=rootfs.ext2,if=none,format=raw,id=d0 \ -append 'root=/dev/nvme0n1 rw rootwait panic=-1 console=ttyS0,115200 ' \ -nographic -monitor null Please let me know if you need additional information. Thanks, Guenter