浏览代码

NFS4: Fix open bug when pnfs module blacklisted

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Fred Isaman 13 年之前
父节点
当前提交
fb47ddc9d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/nfs/pnfs.h

+ 1 - 1
fs/nfs/pnfs.h

@@ -365,7 +365,7 @@ static inline bool
 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src,
 		   struct nfs_server *nfss)
 {
-	return (dst && src && src->bm != 0 &&
+	return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld &&
 					nfss->pnfs_curr_ld->id == src->l_type);
 }