Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28c1acff authored by Trond Myklebust's avatar Trond Myklebust
Browse files

pNFS: Remove redundant stateid invalidation



The layout stateid will be invalidated once it holds no more layout
segments anyway.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent f71dfe8f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1040,7 +1040,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);