Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1083198pxa; Wed, 5 Aug 2020 22:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwczuYThPTGgCO8FBr6yC8C1/h2Lb7jtLGZ2UGVwuKIb2Ucv3dmq1rtsW6KeH0CJyiWclrH X-Received: by 2002:a17:907:385:: with SMTP id ss5mr2513869ejb.496.1596690443225; Wed, 05 Aug 2020 22:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596690443; cv=none; d=google.com; s=arc-20160816; b=hUdyKggRuEnge4cjxJftMe8S4+AeSRAK51BpM9TzlpKNi+jlisi08xN8nzqLXAEuEV 8oRPnc3bRRIBf1fCnRAUjt/7vnlJNu5j2XdSkBCv97CGW1zyOsLLr2eULiKYw5sWJOPJ TscSXZ1/q2EPSGIKcq9QPrUwqzk6YOIfexgXRe9+lMKCiPgsUS/JuQMtLZy8eLZYBhFz Y93/4p32TR7jDjt/rQ8c9uMHsq7H6Rx6g+VZtx1mrrdKTG07GhnTk0AAHGdekjC0Bu/K CVvs8d52adb+rLxwkw5qaOQCZvxetU3AOAnJnF4PIhVrBHgZIMHYdF6sxq9l4yFVqrvD lq1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=VVSydngIW9ZeCOw2/dRh2Al8JqzGTrB6toWtHxYtBPE=; b=JUon4oUGih1JDOx6AvaZSwzm5e16UtDwjZDH+hgczXzfjsyNwyaPqUQkU7Gj/nIcox 0cknM2Ki1KZ75V3LqAhP02/nPKHzKVOlBH7Mg6nu1Jc/e5KjR9yWurEZClQ5HGJxXYAe fRFFN1gjAjhTE6ARmJD3M8Yv+U+qStroY9zYKWvGMS/DSUJsPXYz3bhC81aQnagVNly1 HcXzv1eh+Pi++9UkRUEK+mwmrH8rPTkI2TyWN/kjDun/2PvE9kdtag/R0bMZjs0icIpv UvaU8ZrCR0/SwO0oHjS0j3BiwzD21nLrO8TWuCIHMKzXMJK5L0npfEdlYYcBfm8uVEOJ kCUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si2644852ejp.499.2020.08.05.22.06.43; Wed, 05 Aug 2020 22:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727060AbgHFEQ4 (ORCPT + 99 others); Thu, 6 Aug 2020 00:16:56 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:41493 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725355AbgHFEQ4 (ORCPT ); Thu, 6 Aug 2020 00:16:56 -0400 Received: from callcc.thunk.org (pool-96-230-252-158.bstnma.fios.verizon.net [96.230.252.158]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0764GFm7013867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 6 Aug 2020 00:16:16 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id EF0BB420263; Thu, 6 Aug 2020 00:16:14 -0400 (EDT) Date: Thu, 6 Aug 2020 00:16:14 -0400 From: tytso@mit.edu To: "zhangyi (F)" Cc: , , Subject: Re: [PATCH] jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock() Message-ID: <20200806041614.GB7657@mit.edu> References: <20200620061948.2049579-1-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200620061948.2049579-1-yi.zhang@huawei.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Jun 20, 2020 at 02:19:48PM +0800, zhangyi (F) wrote: > jbd2_write_superblock() is under the buffer lock of journal superblock > before ending that superblock write, so add a missing unlock_buffer() in > in the error path before submitting buffer. > > Fixes: 742b06b5628f ("jbd2: check superblock mapped prior to committing") > Signed-off-by: zhangyi (F) > Cc: stable@kernel.org Thanks, applied. - Ted