Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1074939imu; Wed, 23 Jan 2019 10:18:45 -0800 (PST) X-Google-Smtp-Source: ALg8bN6LFswODiGdamlD7K9/UxNTNq4rijG3b8RUCXcpeNmwLY4u/Dsl8bN9lr+L1hyCbRYzOwvM X-Received: by 2002:a62:8dd9:: with SMTP id p86mr2970913pfk.143.1548267525152; Wed, 23 Jan 2019 10:18:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548267525; cv=none; d=google.com; s=arc-20160816; b=tWKntKIWX8WUIgqj451anUkNlGqIoXFvH9zDaFFeeP2ADXG8HfjxW1XoRph8+/U1Hs uvYXHF3utvLffR5Vhe6XmM9pqufatkUXkZeizWzpm5W9EBQlFo9KmcT8IvX6ay7zvcEY 3pqHdsU13N4/dwRQmFyIw0AiDsQMhRivYLQOpIrYnVIcAUbl0B0O12QjBCR+NQbsxD71 TK5KLmU/BUiKM+qqweEtA7gN+22rRYchFdEQ3fnHOjoF+YMVpEApHCcJgB9yh8JCpAtJ xAU6YaEYgsACajGRxHiut/kfk1DdJtrQJS8Zywp1EeJpQCAm9dwLpiUfKP8BeaJHSudD LVNQ== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=OHfXKqS/cd5PdeS0hlQomNAdJPyO2rGLTqijJHyb9X4=; b=qtszvLNjOGbXkSoWuEBN94uXATfw0/Sk/gYlWQ/S4mmN0olE/GZmnayIjboS/DWpTW 7fIOyz2deIawQHo3mNvTM4QsBQfRJjJ2KtByxNBCmw0T1kiVBDVKdSDOLd2SmKZ+dhpU 705su3gMlJ2H5jiSHUdv6zmT8cq03mJeJNeBE+NWC+nwSvLr/5jfoYwTpWWlY2VfmM/D daLA8p9MO9YzJKVr7a9g7FLuVpnaCDusPX8H1Ta+KAQO/TAiKTyFYs8ImTnQdNmtH6Cb zIrC9+6xPmMrdKOVqubCMXCxsrkLGUPFHfA+0LUwYr5BJN8MpIGseqMIVYIXE8aG3cb5 cwQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oDEsVf0B; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q64si17803720pga.280.2019.01.23.10.18.28; Wed, 23 Jan 2019 10:18:45 -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=@kernel.org header.s=default header.b=oDEsVf0B; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726310AbfAWSSH (ORCPT + 99 others); Wed, 23 Jan 2019 13:18:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:57886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbfAWSSH (ORCPT ); Wed, 23 Jan 2019 13:18:07 -0500 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 6478421019; Wed, 23 Jan 2019 18:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548267486; bh=OHfXKqS/cd5PdeS0hlQomNAdJPyO2rGLTqijJHyb9X4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oDEsVf0BiYCdgmuZcW2l3EKh8c1bHNzP0k1o7H9NzSoHl+/xDqIqkb0vDcOEMmrMg wvl+LKcgJlRCFRUY4zuw+hT8au1n+cSXN0iGZhCV5eqRP3EDP0cOYTHNRKmTdcQ67N IcDegIsyD5V4usq6TB02m/98vboSbaj1P8jPdNgs= Date: Wed, 23 Jan 2019 13:18:05 -0500 From: Sasha Levin To: Hans van Kranenburg Cc: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , David Sterba , "linux-btrfs@vger.kernel.org" Subject: Re: [PATCH AUTOSEL 4.20 072/117] btrfs: alloc_chunk: fix more DUP stripe size handling Message-ID: <20190123181805.GM202535@sasha-vm> References: <20190108192628.121270-1-sashal@kernel.org> <20190108192628.121270-72-sashal@kernel.org> <783ccf1f-65df-d388-079c-9449d4319c27@mendix.com> <20190123143732.GL202535@sasha-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 03:54:00PM +0000, Hans van Kranenburg wrote: >On 1/23/19 3:37 PM, Sasha Levin wrote: >> On Tue, Jan 08, 2019 at 11:52:02PM +0000, Hans van Kranenburg wrote: >>> Hi Sasha, >>> >>> On 1/8/19 8:25 PM, Sasha Levin wrote: >>>> From: Hans van Kranenburg >>>> >>>> [ Upstream commit baf92114c7e6dd6124aa3d506e4bc4b694da3bc3 ] >>>> >>>> Commit 92e222df7b "btrfs: alloc_chunk: fix DUP stripe size handling" >>>> fixed calculating the stripe_size for a new DUP chunk. >>> >>> That one also ended up as: >>> >>> 4.14-stable >>> 0136bd7238b2cb8238426af4183ed0b02165c3f9 >>> >>> 4.9-stable >>> 8890bae03f4dba1c2292e5445682b556af4e8f1b >>> >>> 4.4-stable >>> 97c3e46ef53748278286fc09dcc30b138d6677c4 >>> >>> 3.16.57-rc1 >>> f68f46284a199f6837c1d5b94a6ae979a2cc463c >>> >>> While hitting the failure condition without adding "crafting" steps to >>> make it exactly match the scenario is unlikely, it might be good if we >>> just go all the way back with this regression fix? >> >> What do you mean with "all the way back"? > >Oh, apologies for not using unambigious phrasing. > >I mean, it seems the autoselection only found 92e222df7b in places where >it's actually called 92e222df7b, and not where it was cherry-picked. > >So, for my own understanding: If I have to do something like this ever >again, then should I have added it like this inside baf92114c? > >Fixes: 92e222df7b ("btrfs: alloc_chunk: fix DUP stripe size handling") >Fixes: 0136bd7238 ("btrfs: alloc_chunk: fix DUP stripe size handling") >Fixes: 8890bae03f ("btrfs: alloc_chunk: fix DUP stripe size handling") >Fixes: 97c3e46ef5 ("btrfs: alloc_chunk: fix DUP stripe size handling") >Fixes: f68f46284a ("btrfs: alloc_chunk: fix DUP stripe size handling") > >Thanks for your patience, :) Ah, the scripts have enough "brains" to deal with these on their own, so no need to annotate that much. This patch wasn't applied to older trees because it didn't cherry-pick cleanly on top of them. Looking at it now, it seems to depend on 793ff2c88c6 ("btrfs: volumes: Cleanup stripe size calculation") which can possibly be picked up if it makes sense. -- Thanks, Sasha