NFS4: Fix open bug when pnfs module blacklisted
authorFred Isaman <iisaman@netapp.com>
Thu, 7 Jun 2012 15:42:12 +0000 (11:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 7 Jun 2012 17:44:24 +0000 (13:44 -0400)
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.h

index 29fd23c0efdcb07c699c5e2e94c1e23dad8de103..64f90d845f6a95cd8752e5b4e1c9b3895f1a1e66 100644 (file)
@@ -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);
 }