Return-Path: Received: from mail-it0-f66.google.com ([209.85.214.66]:33088 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064AbcGVTeu (ORCPT ); Fri, 22 Jul 2016 15:34:50 -0400 Received: by mail-it0-f66.google.com with SMTP id d65so3684157ith.0 for ; Fri, 22 Jul 2016 12:34:49 -0700 (PDT) From: Trond Myklebust To: linux-nfs@vger.kernel.org Subject: [PATCH 4/6] pNFS: Remove redundant stateid invalidation Date: Fri, 22 Jul 2016 15:33:56 -0400 Message-Id: <1469216038-71882-5-git-send-email-trond.myklebust@primarydata.com> In-Reply-To: <1469216038-71882-4-git-send-email-trond.myklebust@primarydata.com> References: <1469216038-71882-1-git-send-email-trond.myklebust@primarydata.com> <1469216038-71882-2-git-send-email-trond.myklebust@primarydata.com> <1469216038-71882-3-git-send-email-trond.myklebust@primarydata.com> <1469216038-71882-4-git-send-email-trond.myklebust@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: The layout stateid will be invalidated once it holds no more layout segments anyway. Signed-off-by: Trond Myklebust --- fs/nfs/pnfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 12d4d1b55dd1..010f8803090b 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -1028,7 +1028,6 @@ _pnfs_return_layout(struct inode *ino) goto out_put_layout_hdr; } - set_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags); send = pnfs_prepare_layoutreturn(lo, &stateid, NULL); spin_unlock(&ino->i_lock); pnfs_free_lseg_list(&tmp_list); -- 2.7.4