浏览代码

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>
Andy Adamson 14 年之前
父节点
当前提交
2887fe4552
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/nfs/pnfs.c

+ 1 - 0
fs/nfs/pnfs.c

@@ -383,6 +383,7 @@ pnfs_destroy_all_layouts(struct nfs_client *clp)
 				plh_layouts);
 				plh_layouts);
 		dprintk("%s freeing layout for inode %lu\n", __func__,
 		dprintk("%s freeing layout for inode %lu\n", __func__,
 			lo->plh_inode->i_ino);
 			lo->plh_inode->i_ino);
+		list_del_init(&lo->plh_layouts);
 		pnfs_destroy_layout(NFS_I(lo->plh_inode));
 		pnfs_destroy_layout(NFS_I(lo->plh_inode));
 	}
 	}
 }
 }