Skip to content

Commit 2887fe4

Browse files
androsadamsonTrond Myklebust
authored andcommitted
NFSv4.1: remove pnfs_layout_hdr from pnfs_destroy_all_layouts tmp_list
Prevents an infinite loop as list was never emptied. Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent a8a4ae3 commit 2887fe4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/nfs/pnfs.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ pnfs_destroy_all_layouts(struct nfs_client *clp)
383383
plh_layouts);
384384
dprintk("%s freeing layout for inode %lu\n", __func__,
385385
lo->plh_inode->i_ino);
386+
list_del_init(&lo->plh_layouts);
386387
pnfs_destroy_layout(NFS_I(lo->plh_inode));
387388
}
388389
}

0 commit comments

Comments
 (0)