Commit fb47ddc9d5ded3d202335ea29743b9242d54eb5a

Authored by Fred Isaman
Committed by Trond Myklebust
1 parent f07936f2c4

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -365,7 +365,7 @@
365 365 pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src,
366 366 struct nfs_server *nfss)
367 367 {
368   - return (dst && src && src->bm != 0 &&
  368 + return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld &&
369 369 nfss->pnfs_curr_ld->id == src->l_type);
370 370 }
371 371