Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp991711pxv; Thu, 1 Jul 2021 14:16:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJym+4Ngz9p4EJzVgOTKlACnZRi9t9Q4V5PjfHt1FXKkLu0N5XYOPQkhbRQHbxJgCanaYmh6 X-Received: by 2002:a92:d1ce:: with SMTP id u14mr1013921ilg.140.1625174201973; Thu, 01 Jul 2021 14:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625174201; cv=none; d=google.com; s=arc-20160816; b=rDHszdZlirMjh1qLI9WrMpN9cAkHyHlHPwSdQXwXkONYmU8lye/A3CykN1XeCTn0d8 1l9+EpfH/qrqsm1hjyetRIuDX9NybToMyAW9oEbp7oBtu+ltTDcTPi4ClVoAX7R/uIkR fXcYJcA7/y6H0tTXWFOYWzuonBtvms05tWVUjiJUtitvM788+5ch/iIFIOlJ4tUqy4tk DBkxDrn5KrlfDu0WJ0o/rPoqmpo1ZIAm9cp6yx194WEsDVwLtK2IdEqMfFniDMPJCGWH obci+EGLl7wE36gexIm8cAaz1QFjLPvk35Ii+uwp/VG8LxVRkSkUYQ8C5JJU4de9Hgi7 hFww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WFDB0TFZS3fJ3kZ9ijt93b2luuDKPpRdyPfo+e5NqW4=; b=TIkbXDbuqv5iXoMJBuai6Sd/T6CltPVd2nNHcc2lqD8skVyzoaZcqIQ19kE4oTOR3X GvlIfyQfdppU1oQaJWhX6KkXx8ZDYecRT81PAPRXKCl5bHs72dJxRsrp0JTslTrR6BrT zkXY3SEHKwO9ElrzrqWiq7E7zcBcZZBspTp/D8mtmB3Yj8sjA0rtO9aWGwUAtfUUfe9d zg3937spVGI6qIde3TGqsutI4dUx7LeOJMAFAiMCEx0Eag7rKNjqkrASmmUQO6yLnrVl 0rByWABjwgMp81OjDAdqRKP6C4S/XKXdHrtSLPb6HIkBSWiH2LkKEQBMDHV4yWiDTK+N WRYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si1065407ilh.98.2021.07.01.14.16.29; Thu, 01 Jul 2021 14:16:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234242AbhGAVRG (ORCPT + 99 others); Thu, 1 Jul 2021 17:17:06 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:54456 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233274AbhGAVRG (ORCPT ); Thu, 1 Jul 2021 17:17:06 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 161LERuF018540 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jul 2021 17:14:27 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id EB61815C3CE1; Thu, 1 Jul 2021 17:14:26 -0400 (EDT) Date: Thu, 1 Jul 2021 17:14:26 -0400 From: "Theodore Ts'o" To: Lukas Czerner Cc: Stephen Brennan , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Junxiao Bi Subject: Re: [PATCH] ext4: use ext4_grp_locked_error in mb_find_extent Message-ID: References: <20210623232114.34457-1-stephen.s.brennan@oracle.com> <20210624095501.jkd7iwu5bljw7xao@work> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210624095501.jkd7iwu5bljw7xao@work> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 11:55:01AM +0200, Lukas Czerner wrote: > On Wed, Jun 23, 2021 at 04:21:14PM -0700, Stephen Brennan wrote: > > Commit 5d1b1b3f492f ("ext4: fix BUG when calling ext4_error with locked > > block group") introduces ext4_grp_locked_error to handle unlocking a > > group in error cases. Otherwise, there is a possibility of a sleep while > > atomic. However, since 43c73221b3b1 ("ext4: replace BUG_ON with WARN_ON > > in mb_find_extent()"), mb_find_extent() has contained a ext4_error() > > call while a group spinlock is held. Replace this with > > ext4_grp_locked_error. > > > > Fixes: 43c73221b3b1 ("ext4: replace BUG_ON with WARN_ON in mb_find_extent()") > > Cc: # 4.14+ > > Signed-off-by: Stephen Brennan > > Reviewed-by: Junxiao Bi > > Good catch, looks good to me. > > Reviewed-by: Lukas Czerner Thanks, applied. - Ted