提交 0cdc329e 编写于 作者: T Trond Myklebust

pNFS: Skip checking for return-on-close if the layout is invalid

Signed-off-by: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 e685d237
......@@ -1190,7 +1190,8 @@ bool pnfs_roc(struct inode *ino)
spin_lock(&ino->i_lock);
lo = nfsi->layout;
if (!lo || test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags))
if (!lo || !pnfs_layout_is_valid(lo) ||
test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags))
goto out_noroc;
/* no roc if we hold a delegation */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册