mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
f07936f2c4
commit
fb47ddc9d5
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ static inline bool
|
||||||
pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src,
|
pnfs_use_threshold(struct nfs4_threshold **dst, struct nfs4_threshold *src,
|
||||||
struct nfs_server *nfss)
|
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);
|
nfss->pnfs_curr_ld->id == src->l_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue