Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7148839ybi; Mon, 8 Jul 2019 15:37:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOHUul0Z41XsZALSfAktBWwRa0dMP+4Cg74ZUqMHNEQ80WNqRPZLGdth7SYF2lv4czHT/b X-Received: by 2002:a17:90a:17c4:: with SMTP id q62mr29105236pja.104.1562625446835; Mon, 08 Jul 2019 15:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562625446; cv=none; d=google.com; s=arc-20160816; b=ESmm0Qq/k19+a/HpiAcRp6xH4ACAEwli9bhUxB9t2A+sh7e5/Ft2L+AyxrUw+BWCjR PKQmIRZ8lAppEQwGftSzaSIG3dlSaqjA4ALpdyNldYGEybviHST5WQgyjtx6gombufjY GxOKklfcDpxuvVfhlSzi7cx8JTWOwcixEwLTbcff9FU6zj0NYzIpE1x8TEzuZEX/Em7k 7yo6dLh2GmLZ0jSObo16nQoNQtbIon1gfzN4o+j95DAJA3tw1ylRiZDlk643iUBo0+j1 XLiSMvgran7BU9qh7F6ZXTuizI9OAL8jzQ+W9O9PUU/RPhNWKB0pCVgW8vRFBJJ+3WNN i0yg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6mfpAf+sQou5PjCmfxuRTZSCoWRcWJt4Akj+0IN5GGI=; b=vgRgjyTKLIVMe6m1luf3UdrpwYDKJp5FIh3qOxm7I/wXISQ3DjXG/AjeEjNuFV6UTg WyfCkktbLmVXsFyFMAXepcqqzLd27m/o8Fjw23tcgsMll4+7i7z0VGTUUcV1Z4juTxST HA0cik6EnmD9crQPK1+kZtZnHYqCmVGc3s4b1KCEaho0X+q3PSp2+l3GI6ZHbOLL6SPD M+R6l4lr1adzkMRP2uq9QNwi4CtpTuUn02zN2q6L/oCMBep+3TYccsckeKLoz1FOI1Ia JpXodZhKKoZbI60/9PrzTz7A5SblcAA6/HkaPo9fvkJDXYs7GTd7K02iUvkgLoOlCthh z5cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jsWvngfj; 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 d13si5685916pgu.268.2019.07.08.15.37.12; Mon, 08 Jul 2019 15:37:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=jsWvngfj; 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 S2388802AbfGHP0V (ORCPT + 99 others); Mon, 8 Jul 2019 11:26:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:54038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388791AbfGHP0T (ORCPT ); Mon, 8 Jul 2019 11:26:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 607062166E; Mon, 8 Jul 2019 15:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599578; bh=guJo8kQuNGCLr9IcAC48ivEXO+m7e0YNXbz8SATXBW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jsWvngfjgFWWVBtahIQfeeEPDQjm8V/loCwWLhWg1KhVQvy1jE3fVGGG4QogqHKFQ EpeRBlYLYx9717WXXGcJdyhNKgnct6T4oKzOcD0LO00S2Y05cDS9zB7ctfn/ry24OC GGBaEohud9mY7gEiwum4S04upHuE+ADF0fAv07ys= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , linux-btrfs@vger.kernel.org, Olivier Mazouffre , Stanislaw Gruszka , Nikolay Borisov Subject: [PATCH 4.14 56/56] stable/btrfs: fix backport bug in d819d97ea025 ("btrfs: honor path->skip_locking in backref code") Date: Mon, 8 Jul 2019 17:13:48 +0200 Message-Id: <20190708150524.341162307@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stanislaw Gruszka Upstream commit 38e3eebff643 ("btrfs: honor path->skip_locking in backref code") was incorrectly backported to 4.14.y . It misses removal of two lines from original commit, what cause deadlock. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203993 Reported-by: Olivier Mazouffre Fixes: d819d97ea025 ("btrfs: honor path->skip_locking in backref code") Signed-off-by: Stanislaw Gruszka Reviewed-by: Nikolay Borisov Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/backref.c | 2 -- 1 file changed, 2 deletions(-) --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1290,8 +1290,6 @@ again: ret = -EIO; goto out; } - btrfs_tree_read_lock(eb); - btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK); if (!path->skip_locking) { btrfs_tree_read_lock(eb); btrfs_set_lock_blocking_rw(eb, BTRFS_READ_LOCK);