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

Commit b85f5620 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

pNFS: Skip invalid stateids when doing a bulk destroy



If the layout stateid is already invalid, we have no work to do.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 29ade5db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -750,6 +750,8 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp,
	struct inode *inode;

	list_for_each_entry_safe(lo, next, &server->layouts, plh_layouts) {
		if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags))
			continue;
		inode = igrab(lo->plh_inode);
		if (inode == NULL)
			continue;