Skip to contentSkip to conversation

NFS4: Fix open bug when pnfs module blacklisted

PATCH New Fred Isaman 1 participant 1 message Jun 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFS4: Fix open bug when pnfs module blacklisted

---
 fs/nfs/pnfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/pnfs.h +1 -1
index 29fd23c..64f90d8 100644
@@ -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);
 }
 
Signature · 1 line
1.7.2.1