Message ID | 20231114015339.3922119-11-leah.rumancik@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-xfs-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75460C4167B for <linux-xfs@archiver.kernel.org>; Tue, 14 Nov 2023 01:54:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjKNByB (ORCPT <rfc822;linux-xfs@archiver.kernel.org>); Mon, 13 Nov 2023 20:54:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231969AbjKNByA (ORCPT <rfc822;linux-xfs@vger.kernel.org>); Mon, 13 Nov 2023 20:54:00 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCF4AD44 for <linux-xfs@vger.kernel.org>; Mon, 13 Nov 2023 17:53:56 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1cc37fb1310so38289785ad.1 for <linux-xfs@vger.kernel.org>; Mon, 13 Nov 2023 17:53:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699926836; x=1700531636; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3gwUolg5jbvLCo3qarJX+gsvTFh8u44kjgMnElXaHxw=; b=UhrE3kxr5O99y/sjWrvDtGCgQbQFfjk9hcKblG4fE/1R18j5/JDzH1wQvA90M/mimD vJGui5UCLhL2AIPDNUoBdBUnODIrugdTMnQYWsVS8ZiPjR8OZz8x9Y1dASDADRESmNVU 5DxJ5RLfNX1HjdEVmnRokoquamJLP13+MNDttF5xBX5O8PHc2R17OnC1ulQ+TrSMIzRn YYlq62S5yTGW+gfOOMZlUwtfif5NlwPHe6gRML/r8gVdMigXIHzRHqhXNtbSRo65xDBj rLKr2nd17DAczCQDd+iLDCjM/6C8WcPWH8YC/dF0mK/vFzasA/dCp8Gb0AHVXIAfisYW x1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699926836; x=1700531636; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3gwUolg5jbvLCo3qarJX+gsvTFh8u44kjgMnElXaHxw=; b=d2i+meeQSABWQjm0ErDnswAujpuPYPzSA91YV9O5Jrxf/5oeHOstsOy/sv+LNQAMu9 xNaiTSzhqSUXW/PPJBz3A5KbqUbDpm8NBVTty5Af3Z3OM5oOUHPUanLMJLjinW+kJJCb 1CaaBTaYhcInk+6XEvisq11JHECTJrUC35IUxDWDDl3CP3UyisQ7kBl1X0kMJSzeAlYa QbPWf6FPl4g6JOdGEEKvUdX3kYSHr4PQer5haKkaGMAcBe18V3TaxZWdkEciR3FWF0Y6 7UM/tI3ChX6tZu7zkxChzVM/D8vjgeR53DVkMXKHsXgPytoo42zBTm9NmysU80LVodE9 Y4vg== X-Gm-Message-State: AOJu0YxXFMwN3jg6MWQdeWs7SQHiaLxZ5/JMREzmiKMdSC5F9Uahru5Z FXjBMrvJqijW6+iT38jvhHR8d0NqFhAGKA== X-Google-Smtp-Source: AGHT+IH78lTuy2ZMfNp/JyuyouH0iYDA5IqtUoEKDUxEgsEPRLIQDPSW1Jr2LX8z11zebB7pDrG/dg== X-Received: by 2002:a17:902:db06:b0:1cc:3daa:d368 with SMTP id m6-20020a170902db0600b001cc3daad368mr1133880plx.65.1699926836068; Mon, 13 Nov 2023 17:53:56 -0800 (PST) Received: from lrumancik.svl.corp.google.com ([2620:15c:2a3:200:d177:a8ad:804f:74f1]) by smtp.gmail.com with ESMTPSA id a17-20020a170902ecd100b001c9cb2fb8d8sm4668592plh.49.2023.11.13.17.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 17:53:55 -0800 (PST) From: Leah Rumancik <leah.rumancik@gmail.com> To: linux-xfs@vger.kernel.org Cc: amir73il@gmail.com, chandan.babu@oracle.com, fred@cloudflare.com, "Darrick J. Wong" <djwong@kernel.org>, Dave Chinner <dchinner@redhat.com>, Leah Rumancik <leah.rumancik@gmail.com> Subject: [PATCH 5.15 CANDIDATE 10/17] xfs: fix intermittent hang during quotacheck Date: Mon, 13 Nov 2023 17:53:31 -0800 Message-ID: <20231114015339.3922119-11-leah.rumancik@gmail.com> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231114015339.3922119-1-leah.rumancik@gmail.com> References: <20231114015339.3922119-1-leah.rumancik@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-xfs.vger.kernel.org> X-Mailing-List: linux-xfs@vger.kernel.org |
Series |
5.15 backports from 5.19..6.1
|
expand
|
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index 623244650a2f..792736e29a37 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c @@ -1244,6 +1244,13 @@ xfs_qm_flush_one( error = -EINVAL; goto out_unlock; } + + if (!(bp->b_flags & _XBF_DELWRI_Q)) { + error = -EAGAIN; + xfs_buf_relse(bp); + goto out_unlock; + } + xfs_buf_unlock(bp); xfs_buf_delwri_pushbuf(bp, buffer_list);