Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2041302imm; Sat, 6 Oct 2018 17:03:59 -0700 (PDT) X-Google-Smtp-Source: ACcGV61qIapP/pJE5pEefLqo2XP1NkctlOPAQ9V8RRofWhGdsd1hpgN/Av47UmYq1nkoHbbh1TTC X-Received: by 2002:a62:c957:: with SMTP id k84-v6mr19081360pfg.205.1538870639630; Sat, 06 Oct 2018 17:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538870639; cv=none; d=google.com; s=arc-20160816; b=dPA77V5zsx/nQZH6F2ONxGVwOGQfhfKKsU4RmzSStdG2kAnvUEvDiDd3YhBYVksb8E zs0tbzeBKr0gKEmCfrknkkZSLI2clplwVLp5p321tEjC6m0l+tC0xISUvTO8XwCHZZzK BBj6IprbD1HUZtxt1pjdO01hPLNQG+mBcRDtz8PBqx0+yV7hFgRnUEu9b7AzTemvJzkj i3vHGL7f4fLxgP/t8zHYgH1Bs8PCDDLHyZF6v3lwUTmJ+f7EN2w3S8E5bUKUqzxG8bLX MuGjPPGaupyoGabsYcMWSUWrTaUfsunUbJu0jxhLtNT889AjOupGPjznmcDdOG1nqo6T QzIA== 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; bh=7lTUyL9Xa8Smjs29jlZzy2sYqsyDU3fkWn7ekdbGuD8=; b=Han7xBlEkEfCHJC5RXjM05aeaQC5iBzHMIAhxoIDw2pNHj+gCKm4M81pLgxzhp+qF+ BIaIIo7lsSz4QNBH2jNa9jW2yH90to69etst+DC/4mee18fRh+5SWT/n0znMQn6yZiAR lIAdYpx6/eDpVSN9AoDrwbtOWFDunfIGb0O2ZdOeT6XGe8z6+yHOYjPMW6k1q/uwVAgL sBebaAAX/VSbvsB7m+3blXliDaGW+ZWqZOa0NNSaU0ShATjBYvjWP9ltEEJnsMv/xBQV TCy3yjwt1ft02Nw9/IVaFOV+lt7TJ8pzBm1szqWQajIESIWivhGtCNecPYEL21nBDVdi X/Ig== ARC-Authentication-Results: i=1; mx.google.com; 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 j3-v6si13363428pld.380.2018.10.06.17.03.41; Sat, 06 Oct 2018 17:03: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; 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 S1726291AbeJGHIv (ORCPT + 99 others); Sun, 7 Oct 2018 03:08:51 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:58044 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbeJGHIu (ORCPT ); Sun, 7 Oct 2018 03:08:50 -0400 Received: from fsav404.sakura.ne.jp (fsav404.sakura.ne.jp [133.242.250.103]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w9703LGe076050; Sun, 7 Oct 2018 09:03:21 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav404.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav404.sakura.ne.jp); Sun, 07 Oct 2018 09:03:21 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav404.sakura.ne.jp) Received: from [192.168.1.8] (softbank060157066051.bbtec.net [60.157.66.51]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w9703GaT075946 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Oct 2018 09:03:21 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: Hard lockup in blk_mq_free_request() / wbt_done() / wake_up_all() To: Chris Boot Cc: Jens Axboe , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Josef Bacik References: <9788e0e6-a448-bf85-1f41-88f42dc0071d@boo.tc> <7080a91c-8d9a-6305-2b67-dc27a374327a@boo.tc> <9c444ab8-2e50-c42a-dae1-86954358218e@boo.tc> <7dbe184d-5660-7b64-8027-bf4f82625ff2@I-love.SAKURA.ne.jp> <296ff5ef-6d50-d895-2ba2-5c824e96c44b@boo.tc> From: Tetsuo Handa Message-ID: <7f79b5b8-fb3e-46d6-69a8-8e137139d24b@i-love.sakura.ne.jp> Date: Sun, 7 Oct 2018 09:03:17 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <296ff5ef-6d50-d895-2ba2-5c824e96c44b@boo.tc> 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 Adding Josef. On 2018/10/06 2:05, Chris Boot wrote: > I upgraded the kernel on my affected system to a 4.18.6 kernel (Debian's > 4.18.6-1~bpo9+1 in stretch-backports) and ran my test suite again. I'm > sorry to report that the issue occurred once more. > > Logs below, it's all I managed to get out of it before my session locked up. > > [Oct 5 17:56] INFO: rcu_sched self-detected stall on CPU > [ +0.003914] INFO: rcu_sched detected stalls on CPUs/tasks: > [ +0.001271] 82-....: (1 GPs behind) idle=47a/0/3 softirq=60148/60149 > fqs=2234 > [ +0.012840] > [ +0.000007] 82-....: (1 GPs behind) idle=47a/0/3 softirq=60148/60149 > fqs=2235 > [ +0.000002] (t=5255 jiffies g=82048 c=82047 q=35803) > [ +0.008936] > [ +0.000003] NMI backtrace for cpu 82 > [ +0.000005] (detected by 87, t=5257 jiffies, g=82048, c=82047, q=35803) > [ +0.001598] CPU: 82 PID: 0 Comm: swapper/82 Not tainted > 4.18.0-0.bpo.1-amd64 #1 Debian 4.18.6-1~bpo9+1 > [ +0.000001] Hardware name: Supermicro SYS-8048B-TR4FT/X10QBi, BIOS > 3.0a 05/30/2017 > [ +0.000001] Call Trace: > [ +0.000004] > [ +0.000011] dump_stack+0x5c/0x7b > [ +0.000005] nmi_cpu_backtrace+0x89/0x90 > [ +0.000007] ? lapic_can_unplug_cpu+0xa0/0xa0 > [ +0.000002] nmi_trigger_cpumask_backtrace+0xf5/0x130 > [ +0.000007] rcu_dump_cpu_stacks+0x9b/0xcb > [ +0.000003] rcu_check_callbacks+0x79a/0x8e0 > [ +0.000007] ? sched_clock_cpu+0xc/0xa0 > [ +0.000005] ? tick_sched_do_timer+0x60/0x60 > [ +0.000005] update_process_times+0x28/0x50 > [ +0.000003] tick_sched_handle+0x22/0x60 > [ +0.000002] tick_sched_timer+0x37/0x70 > [ +0.000002] __hrtimer_run_queues+0xfc/0x270 > [ +0.000003] hrtimer_interrupt+0x101/0x240 > [ +0.000004] smp_apic_timer_interrupt+0x6a/0x130 > [ +0.000002] apic_timer_interrupt+0xf/0x20 > [ +0.000006] RIP: 0010:_raw_spin_unlock_irqrestore+0x11/0x20 > [ +0.000001] Code: 8b 00 a8 08 74 0b 65 81 25 d8 6b 11 48 ff ff ff 7f > 44 89 e0 5b 5d 41 5c c3 0f 1f 44 00 00 c6 07 00 0f 1f 40 00 48 89 f7 57 > 9d <0f> 1f 44 00 00 c3 66 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 c6 07 > [ +0.000030] RSP: 0000:ffff8bfdffc83de8 EFLAGS: 00000202 ORIG_RAX: > ffffffffffffff13 > [ +0.000002] RAX: 00000000ff72b790 RBX: ffff8bedf5807768 RCX: > dead000000000200 > [ +0.000001] RDX: ffffa8cc4fa87410 RSI: 0000000000000202 RDI: > 0000000000000202 > [ +0.000001] RBP: 00000000ff72b790 R08: ffff8bedf5807770 R09: > 000003fffff00000 > [ +0.000001] R10: 0000000000000052 R11: 0000000000000001 R12: > 0000000000000202 > [ +0.000001] R13: 0000000000000003 R14: 0000000000000000 R15: > 0000000000000000 > [ +0.000001] ? apic_timer_interrupt+0xa/0x20 > [ +0.000006] __wake_up_common_lock+0x89/0xc0 > [ +0.000007] rwb_wake_all+0x30/0x40 > [ +0.000003] scale_up.part.25+0x24/0x40 > [ +0.000002] wb_timer_fn+0x295/0x430 > [ +0.000007] ? blk_mq_tag_update_depth+0x110/0x110 > [ +0.000001] call_timer_fn+0x2b/0x120 > [ +0.000003] run_timer_softirq+0x1d3/0x410 > [ +0.000002] ? enqueue_hrtimer+0x3a/0x90 > [ +0.000002] ? __hrtimer_run_queues+0x12c/0x270 > [ +0.000002] __do_softirq+0x10d/0x2a6 > [ +0.000006] irq_exit+0xb6/0xc0 > [ +0.000003] smp_apic_timer_interrupt+0x74/0x130 > [ +0.000001] apic_timer_interrupt+0xf/0x20 > [ +0.000001] > [ +0.000008] RIP: 0010:cpuidle_enter_state+0xa7/0x2b0 > [ +0.000001] Code: c8 28 48 e8 bb b9 b2 ff 48 89 04 24 0f 1f 44 00 00 > 31 ff e8 4b c4 b2 ff 80 7c 24 0f 00 0f 85 b6 01 00 00 fb 66 0f 1f 44 00 > 00 <48> 8b 0c 24 48 ba cf f7 53 e3 a5 9b c4 20 4c 29 f9 48 89 c8 48 c1 > [ +0.000028] RSP: 0000:ffffa8cc4c7cbe78 EFLAGS: 00000246 ORIG_RAX: > ffffffffffffff13 > [ +0.000002] RAX: ffff8bfdffca1b80 RBX: 0000000000000001 RCX: > 000000000000001f > [ +0.000001] RDX: 00000237c552d9f0 RSI: 0000000040000219 RDI: > 0000000000000000 > [ +0.000000] RBP: ffff8bfdffcaaf78 R08: 00000000ffffffff R09: > 0000000000000008 > [ +0.000001] R10: 00000000000000a9 R11: 00000000000000c2 R12: > ffffffffb88b3a78 > [ +0.000001] R13: 0000000000000001 R14: 0000000000000001 R15: > 00000237c55130a6 > [ +0.000004] ? cpuidle_enter_state+0x95/0x2b0 > [ +0.000004] do_idle+0x204/0x270 > [ +0.000003] cpu_startup_entry+0x6f/0x80 > [ +0.000002] start_secondary+0x1a4/0x1f0 > [ +0.000005] secondary_startup_64+0xa5/0xb0 This trace contains rwb_wake_all() from scale_up(), which was removed by commit a79050434b45959f ("blk-rq-qos: refactor out common elements of blk-wbt"). Josef, what is the reason you removed rwb_wake_all() from scale_up() (and you added rwb_wake_all() to scale_down()) ?