Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp435195pxa; Tue, 11 Aug 2020 06:49:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcDpPErzDxgxmyPabHOTM6u8dLsLBFZCtSl+HCspsITYDd+9mj2tsxhdWphtcUxlY+nclR X-Received: by 2002:aa7:d983:: with SMTP id u3mr27101746eds.366.1597153746757; Tue, 11 Aug 2020 06:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597153746; cv=none; d=google.com; s=arc-20160816; b=gx+WOghiZuObmEkuYkIQZd8dFKirhUEG3DOT9LOJs28KUp27b2itIXkhj7X09oVzw/ uu2oiVKon3fRlWAxpVncBAw1tlDzSJa3JNn6TBzWwzefIeXJ6y4WI/nPN0c/Zr4pny+P 1RejIl040bt5ytxYUQn54L864NGfGCQJx4byYWgv7W1eV6ysU7ImTOHcBp9qkTxv0mr3 je3v0c3gS6EhDYrScyk2reH84pdLH6LsWZw5XrACqtR/2ghpGUMfTgGVOd6atC63eqFk Il7yHJ2+8QKR4j0xagVSCek/bOZ8eL+8muUX88RthPjT4k0xEn8RnmST6tcC1XJ4TdgF Z0fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:to:from:date:dkim-signature; bh=4Br35de2IcBcj7SktQ0AMJiOWl2WRuYDRoMnG88e43E=; b=GMyCOiANZmjIdsDkuyju60rYz5r1ESVcpbQXNH64A99w9z+JAgT4MbqGuvQ4mVIEgd K1CtyV5U7VMRIjHb84mgTpTowEYUD6kk0O6sjS86oxrqGPUvFeNg5h9G7TlnjNMfG5j2 w4ulOWq96XiZV86UnDCquWx9yUps2418kYKPciYQsCB7Rls6o4Oiz6NQhe9pxMI+aCfb nNrzszx6rzz1u1o1MjO7FiaDpfyQ6mueDhofdtM7iZAHaDVj1iv3zpBXXLmqwHEdNorc 6O6Wl8DMOJOonKYu4uUUKYUi4f1pfz6mrcjc4MafAs3qTxrxMkk5jlcsrTjtZzt7okJM gmGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wtdh1lcp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si12622816edr.134.2020.08.11.06.48.42; Tue, 11 Aug 2020 06:49:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wtdh1lcp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728693AbgHKNr4 (ORCPT + 99 others); Tue, 11 Aug 2020 09:47:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:37572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728532AbgHKNrr (ORCPT ); Tue, 11 Aug 2020 09:47:47 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B3462076B; Tue, 11 Aug 2020 13:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597153666; bh=5yMEp9SyDxPuo/xXOdliP4xpnslVqaycciG2uRFajHk=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=wtdh1lcpu2MOuXVkpZaTW+KsbfecM8PsgIi8ucIUwmgrSVpyJ0qQ/hHCVK6hApvLK ONu2szekPDI4KmUgBtuvKcjhuSfczaU0kttSOsEJlJCmNwRxsB0w3uVCCeFBXw6PMd e+d6+mU2CB1qjb0mSvl3OwsEYJ4FUiBqYNm8z+yI= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 26D473522FF7; Tue, 11 Aug 2020 06:47:46 -0700 (PDT) Date: Tue, 11 Aug 2020 06:47:46 -0700 From: "Paul E. McKenney" To: dsterba@suse.cz, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Sasha Levin , linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.4 03/16] fs/btrfs: Add cond_resched() for try_release_extent_mapping() stalls Message-ID: <20200811134746.GV4295@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200810191443.3795581-1-sashal@kernel.org> <20200810191443.3795581-3-sashal@kernel.org> <20200811075720.GL2026@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200811075720.GL2026@twin.jikos.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 11, 2020 at 09:57:20AM +0200, David Sterba wrote: > On Mon, Aug 10, 2020 at 03:14:30PM -0400, Sasha Levin wrote: > > From: "Paul E. McKenney" > > > > [ Upstream commit 9f47eb5461aaeb6cb8696f9d11503ae90e4d5cb0 ] > > > > Very large I/Os can cause the following RCU CPU stall warning: > > > > RIP: 0010:rb_prev+0x8/0x50 > > Code: 49 89 c0 49 89 d1 48 89 c2 48 89 f8 e9 e5 fd ff ff 4c 89 48 10 c3 4c = > > 89 06 c3 4c 89 40 10 c3 0f 1f 00 48 8b 0f 48 39 cf 74 38 <48> 8b 47 10 48 85 c0 74 22 48 8b 50 08 48 85 d2 74 0c 48 89 d0 48 > > RSP: 0018:ffffc9002212bab0 EFLAGS: 00000287 ORIG_RAX: ffffffffffffff13 > > RAX: ffff888821f93630 RBX: ffff888821f93630 RCX: ffff888821f937e0 > > RDX: 0000000000000000 RSI: 0000000000102000 RDI: ffff888821f93630 > > RBP: 0000000000103000 R08: 000000000006c000 R09: 0000000000000238 > > R10: 0000000000102fff R11: ffffc9002212bac8 R12: 0000000000000001 > > R13: ffffffffffffffff R14: 0000000000102000 R15: ffff888821f937e0 > > __lookup_extent_mapping+0xa0/0x110 > > try_release_extent_mapping+0xdc/0x220 > > btrfs_releasepage+0x45/0x70 > > shrink_page_list+0xa39/0xb30 > > shrink_inactive_list+0x18f/0x3b0 > > shrink_lruvec+0x38e/0x6b0 > > shrink_node+0x14d/0x690 > > do_try_to_free_pages+0xc6/0x3e0 > > try_to_free_mem_cgroup_pages+0xe6/0x1e0 > > reclaim_high.constprop.73+0x87/0xc0 > > mem_cgroup_handle_over_high+0x66/0x150 > > exit_to_usermode_loop+0x82/0xd0 > > do_syscall_64+0xd4/0x100 > > entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > > > On a PREEMPT=n kernel, the try_release_extent_mapping() function's > > "while" loop might run for a very long time on a large I/O. This commit > > therefore adds a cond_resched() to this loop, providing RCU any needed > > quiescent states. > > > > Signed-off-by: Paul E. McKenney > > Paul, > > this patch was well hidden in some huge RCU pile > (https://lore.kernel.org/lkml/20200623002147.25750-11-paulmck@kernel.org/) > > I wonder why you haven't CCed linux-btrfs, I spotted the patch queued > for stable by incidentally. The timestamp is from June, that's quite > some time ago. We can deal with one more patch and I tend to reply with > acks quickly for easy patches like this to not block other peoples work > but I'm a bit disappointed by sidestepping maintained subsystems. It's > not just this patch, it happens from time time only to increase the > disapointement. My bad, and please accept my apologies. I clearly left out the step of adding proper Cc: lines. :-/ Thanx, Paul