Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3600360ybl; Mon, 27 Jan 2020 07:01:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzXdlYvrw9gpKlTH/Abbt+Y8iYA/IIBcK7CpmdfuqHyK1gsPA16ANAi5O2u6k3eHjDTfIFq X-Received: by 2002:a9d:7cd9:: with SMTP id r25mr12017289otn.326.1580137261473; Mon, 27 Jan 2020 07:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580137261; cv=none; d=google.com; s=arc-20160816; b=hbZDYgn8h2W3zBLjIFBdpZ4RltF4RycK86DKMF+Ghv+1uTRgwhVprXX/ZE7d5cmfJ8 QfEujBKSYy5Dd8hED3Slo1utwN+ed4oRPVAOBgkUBjR+vUISYlmjwlMC1fN60HhhhRe2 SDGSg/FNGW7rv97xBqDgMv0BEspyUyhG9V14h+DDoa315uRY3oUfUkInyGipoig141cu /9g5DThJUin4xNkaiNiHuLw0jiUXgfx6m3cFN9wg/IHTf8WIqA2KcUkgDaNMc6Cj+6fC Et4rQOZmUKIGJCTfILo5aqu5/S4Wsr2uvrgfjy9OeG8U1rb1MOOUu2rM9ZM0YFmfUGm0 dtoA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+53wEaO9sr3iZGt29UZUjIeOI2BiLFw4FnrTlFPrmzw=; b=mEr7718GaNnW9VLEUIZHdlBLI3fNRYT/mwjtqPmWN5CgRDrh+WmDd3xKaDrJfsPiq+ cY0MBvemL8cWSs2b5ADO0oCj/bl04/RA/LF74RPq4fWnzRoDJO5mrbbpJYNnA0lzDNi3 19fhDOODStMiksHFEJBT2t62EuFLdML0+DGU/3Qliqhte/cami1Qf5nppsWiuxyQ8JoG T4ovC3Pr2ysBkHyDMhtErTUO6XCnxDW/9ukWUmdheZEawXfslkSlPXhG+M+43soXnb8c 0wu069+XAcoY2n/ymeKEgp1Bnq3pV/ylrdbwfGnkw4KVyQjc99D5yD0Ad+otjYMUvxUQ rvPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ImeWTxbU; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si7377890otc.105.2020.01.27.07.00.42; Mon, 27 Jan 2020 07:01:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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=@gmail.com header.s=20161025 header.b=ImeWTxbU; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726443AbgA0PAc (ORCPT + 99 others); Mon, 27 Jan 2020 10:00:32 -0500 Received: from mail-yw1-f68.google.com ([209.85.161.68]:39402 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729267AbgA0PAb (ORCPT ); Mon, 27 Jan 2020 10:00:31 -0500 Received: by mail-yw1-f68.google.com with SMTP id h126so4829413ywc.6 for ; Mon, 27 Jan 2020 07:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+53wEaO9sr3iZGt29UZUjIeOI2BiLFw4FnrTlFPrmzw=; b=ImeWTxbUub3NObJ3gOMyvkm7X1mmxnBIfqC6QcmU1nOd0UMvqqOisl4pca/tnvO1Md eL0VDvHaYn9gIcnO5OxsTOSvN+ZhmfmSj3A+c/bcxxAImdKca2+kisJq47b1KLyLvXwt dbrtDzbuKPeiskp31Hx95kVyXxKZ4tH4BsaYbxbwjSwwbjlXGPEKywu/0w8gD7y4yzqn fqnRYs7tr9H8IqE6+L4q4LlwDCRwg/69ZLESSwU+M7ZgHLdFAQMdNma/z+3FKTbZB7Ug 1eEk4skv8knjHLdUl8cBnUWf+ob68l3+N7JIFkNqMH/9oC/GJC21JP3CuVOYbIjQtzNz qtkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+53wEaO9sr3iZGt29UZUjIeOI2BiLFw4FnrTlFPrmzw=; b=o6v7apnidQHyI7IJ2WDEiRvyxsvRWfAq8mGQ7SMeybq9jm9ABJOJWBHZxUrcnaCa9M Fk5ss7WzRH84in88SPgnsfhVwuBWIYBYydK+lV6ZtTVZ1bpPkqTm30FgKmhZew534mga eQ8bIyT7tN3g6ked8rQJy/fXTcZgOdc7xYDCeVUmmEvanYn4Tr1qOYtep4uTY/XfzXpA 7nZTB9ahiGRqmgtU+kD8qLF2VRjABCBCYF1UEyFHGJRZEDXrIcTeUNOGA8Qho14UjMOM nCRJD//GlCgoxtsnpYZColqhhXpsAPoiIg0HmPbgPIZ+SU+BF45jT97Bj4tOnPspVm2L nwGA== X-Gm-Message-State: APjAAAWmZaFel+MhYvVXl7Askw95m9d/NWe0cB/FXgRN00omjX0BUTM+ lED0+3ctRzcBb/PmvJP1C3YUNzQ97g== X-Received: by 2002:a0d:d850:: with SMTP id a77mr12581529ywe.464.1580137229830; Mon, 27 Jan 2020 07:00:29 -0800 (PST) Received: from localhost.localdomain (c-68-40-189-247.hsd1.mi.comcast.net. [68.40.189.247]) by smtp.gmail.com with ESMTPSA id d186sm6809096ywe.0.2020.01.27.07.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2020 07:00:29 -0800 (PST) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH 1/5] NFSv4: nfs_inode_evict_delegation() should set NFS_DELEGATION_RETURNING Date: Mon, 27 Jan 2020 09:58:15 -0500 Message-Id: <20200127145819.350982-2-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200127145819.350982-1-trond.myklebust@hammerspace.com> References: <20200127145819.350982-1-trond.myklebust@hammerspace.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org In particular, the pnfs return-on-close code will check for that flag, so ensure we set it appropriately. Signed-off-by: Trond Myklebust --- fs/nfs/delegation.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index fe57b2b5314a..a7e42725c3b1 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -607,6 +607,7 @@ void nfs_inode_evict_delegation(struct inode *inode) delegation = nfs_inode_detach_delegation(inode); if (delegation != NULL) { + set_bit(NFS_DELEGATION_RETURNING, &delegation->flags); set_bit(NFS_DELEGATION_INODE_FREEING, &delegation->flags); nfs_do_return_delegation(inode, delegation, 1); nfs_free_delegation(delegation); -- 2.24.1