提交 b85f5620 编写于 作者: T Trond Myklebust

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: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 29ade5db
...@@ -750,6 +750,8 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, ...@@ -750,6 +750,8 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp,
struct inode *inode; struct inode *inode;
list_for_each_entry_safe(lo, next, &server->layouts, plh_layouts) { 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); inode = igrab(lo->plh_inode);
if (inode == NULL) if (inode == NULL)
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册