]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Don't print a pNFS error if we aren't using pNFS
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 26 Oct 2016 19:54:31 +0000 (15:54 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 7 Nov 2016 21:11:30 +0000 (16:11 -0500)
commit192747166a468dd8fb5d47ad9d5048c138c1fc25
treef082f03274d1704bfc2b70eccbc69634e14d38eb
parent8ef3295530ddc969ea9a3f307d94df97fcbc0629
NFS: Don't print a pNFS error if we aren't using pNFS

We used to check for a valid layout type id before verifying pNFS flags
as an indicator for if we are using pNFS.  This changed in 3132e49ece
with the introduction of multiple layout types, since now we are passing
an array of ids instead of just one.  Since then, users have been seeing
a KERN_ERR printk show up whenever mounting NFS v4 without pNFS.  This
patch restores the original behavior of exiting set_pnfs_layoutdriver()
early if we aren't using pNFS.

Fixes 3132e49ece ("pnfs: track multiple layout types in fsinfo
structure")
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c