Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4910442ybv; Mon, 17 Feb 2020 08:16:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyA2uSVTkY7rNEYRfUDTaD8sT7KjUgcTXXqYkyGjYv0AFQH3/SkdhMhH2126MuZTBeRoHu4 X-Received: by 2002:a9d:7498:: with SMTP id t24mr13004290otk.290.1581956172850; Mon, 17 Feb 2020 08:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581956172; cv=none; d=google.com; s=arc-20160816; b=ioa5JHHsFuz4u/6OaQMCtOFLjxq9LOlqJmEleY6zl4+h5x5FH6P2iqDRSB+L4HuQ9u sH1QJiNoYfb8CUufVmq+jaTalBIsU3umAZUJ5Cezoa318QhGyuz4Cw/sd9sP1u7YLyJi hY5EbAgXeIVarGdcvuWZK1LSIlbVDbMkdV9kg1qOz7icCf9YvVUlpCk0w6xWU90FX1ju ZDalO+YvzSWI4p1ZUCiFWrCVk9Al2X1bYRnofLYA5gTW/GxjHG2+rra56MVmjJ2w7vys xA2bkuyCe+qm7eZh2eXhg1V4pQI1aNACokPw8Yd2IvblbTa0meWdmhlYbLE2j72LWOZP QsLg== 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=/sMc2YsQMFPV5Cg2fuagwQFOROYXCteAU31ymo0g65I=; b=eqGLXpz4TsjR04Xjt6N/EoCGFZocaSjafR5n4xyTgC49tpFMk9nDHnjaA0hPU/LIQp y6Px+J7GQuDLt8GNPcUjGHSOC0JttBDqZf43i//ABVICwlc3kztnC4/kxzgm1x/Y9zFJ xyMC3/Xhh82q19CNHxbSe7PFG4vvikQcBsie3PXJmoIA0cM8XB5QDGUaeDTsK6PN36f7 Bp8Zrc3I+Jefpbc5/ZnGm7pIPW10uam97fWbl9jq99+tytbxp60FyrmBFY3ogTyydrz0 +kFr+U3K0p0rMTxquoXMQP0KfJGUqfaD70EMjU3ubAf9ecRXzR1ktAngI+sUpwoUg/yS g/MA== 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 q66si6493257oig.65.2020.02.17.08.16.01; Mon, 17 Feb 2020 08:16:12 -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; 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 S1729644AbgBQQFF (ORCPT + 99 others); Mon, 17 Feb 2020 11:05:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:47920 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgBQQFF (ORCPT ); Mon, 17 Feb 2020 11:05:05 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3B57DAC7C; Mon, 17 Feb 2020 16:05:03 +0000 (UTC) Subject: Re: Linux 5.6-rc2 To: Linus Torvalds , Josef Bacik Cc: Dave Jones , David Sterba , Linux Kernel Mailing List References: <20200217020840.GA24821@codemonkey.org.uk> <8025e1bf-4834-83c6-d12c-4e817f875776@toxicpanda.com> From: Filipe Manana Message-ID: Date: Mon, 17 Feb 2020 16:04:53 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 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 17/02/20 05:08, Linus Torvalds wrote: > On Sun, Feb 16, 2020 at 7:02 PM Josef Bacik wrote: >> >> I assume Filipe wrote this based on my patch here >> >> https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git/commit/?id=c821555d2b9733d8f483c9e79481c7209e1c1fb0 >> >> which makes it so we can allocate safely in this context, but that patch hasn't >> made it's way to you yet. Do you want it now? It was prep for a much less safe >> patchset, but is fine by itself. Thanks, > > I assume it's either that, or revert 28553fa992cb and do it differently.. > > I'll leave that whole decision to the btrfs people who actually know > the code and the situations and what the alternative would look > like... So what happened was that the patch was developed against the integration branch, where we don't use search paths in spinning mode anymore - this was done by Josef's patch, which itself is not a bug fix but it's necessary for another bug fix that is only on the integration branch. On 5.6-rcX and any other other older kernels we have the search using spinning locks, that's why we run into this problem. The solution can be either adding Josef's patch or changing the order in which my patch unlocks the file range - to do it after the patch is freed (which releases any spin locks it might be holding). I've just sent a patch for that: https://patchwork.kernel.org/patch/11386723/ I'm fine with either solution. Thanks. > > Linus >