Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10424900ybi; Wed, 24 Jul 2019 23:00:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOOT1w/NaRV3HNdBwDffCSoTtU9HKxVWfWPciWKYDRK/EgZC7w/E+E4OxvyPIiyIdA/mGV X-Received: by 2002:a65:6294:: with SMTP id f20mr87049093pgv.349.1564034405095; Wed, 24 Jul 2019 23:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034405; cv=none; d=google.com; s=arc-20160816; b=UIcNhpJ9lYC/+Q/cRKStMeIwtx5HRvB9ZiSJjQY0kl7tyCxgH2+nrPAlb3ZDGcnn0C +Miuf0uXe3iem+l0+/Ip4iHjGfU0vjjOHBhN0QXm31FByo/7fjetFaU2y1Ja71SGKvhO LlOfysQ72JL5Zt3MgeKyI6buq4lI+4T5uT+QfVvJmVx+TDmXwwy8IwqKIj+poNxM3hhU nReTs+s6O7SGPELGY5qDzem4gKOu6x/4oMpkfFk6wHPKKpCehdfeqgpJa7zTP11zxuCD P3rMCpk1jPXTTDCcV6x3ZbqS/7uh1lBMgwEpVPs9uOpGmka/YqQ/Vjthu+Cok0b+ECpb xmaQ== 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=sPITZwM7LpPhUML6mntmJDXSzwsxUA6ejGg1xl8Q824=; b=K0k+AY2D2WeefcpCFrAu0pNctRvnJ79EAIRZqkc6tJarR4CRhKGfR/TP8f39BqJLif X+qW85NeTVNQZBMc5Njt2C0rycLk19rU/wEgn+m9OBTMZrF1hGa9BZD2Hg7JyFoExC8K dBTpFSJ/4VxXcv34tMXFNRnz8WLqPnkVpOJULRd3zVFwqhrGLbHnuBCe4TodSmhPshvf Q7cgxX6nim9LSllf2B6xDAdjcGJyDTOEFC5bbf+zpNd17oqDk9VnyMLgSvNOKMxtWeaB szzMf2GwCiBJ+LB2He2C/Htj0xUc9sNXF0I21iPCIiUzhrEtQKoFvzllntP0gAYtXYi0 Nmjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bAsNjvuT; 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 t70si20300626pgd.573.2019.07.24.22.59.50; Wed, 24 Jul 2019 23:00:05 -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=bAsNjvuT; 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 S2404910AbfGYFnq (ORCPT + 99 others); Thu, 25 Jul 2019 01:43:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:58654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390866AbfGYFnm (ORCPT ); Thu, 25 Jul 2019 01:43:42 -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 9880A21850; Thu, 25 Jul 2019 05:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033421; bh=GuyYyxGlZV5qXFdPx3dhWr2waZi16TNzGU6lqBc96LU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bAsNjvuTtbW75PcUjmsSyD5RxBIYL4llP8Z53heGdbWX8plCaUBWiTy3ui45vr0oY UvmpsW14ecvaTwb1z9r3u6KYz0AbW1yIL3sVpIzzT4vFMq57J/Kj27uL2799VSsS5u z3kcq9NpfWNmrflEm5ALswLMXWLa9bAXUgzlNjCc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anna Schumaker , Trond Myklebust Subject: [PATCH 4.19 201/271] pNFS: Fix a typo in pnfs_update_layout Date: Wed, 24 Jul 2019 21:21:10 +0200 Message-Id: <20190724191712.329959976@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@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: Trond Myklebust commit 400417b05f3ec0531544ca5f94e64d838d8b8849 upstream. We're supposed to wait for the outstanding layout count to go to zero, but that got lost somehow. Fixes: d03360aaf5cca ("pNFS: Ensure we return the error if someone...") Reported-by: Anna Schumaker Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- fs/nfs/pnfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1866,7 +1866,7 @@ lookup_again: atomic_read(&lo->plh_outstanding) != 0) { spin_unlock(&ino->i_lock); lseg = ERR_PTR(wait_var_event_killable(&lo->plh_outstanding, - atomic_read(&lo->plh_outstanding))); + !atomic_read(&lo->plh_outstanding))); if (IS_ERR(lseg) || !list_empty(&lo->plh_segs)) goto out_put_layout_hdr; pnfs_put_layout_hdr(lo);