diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 550010826bdd3c8263ae2356d5417b5aaa042c79..0b25a1c820ba523ede716903e1eb7f06657ef0aa 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -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;