]> git.baikalelectronics.ru Git - kernel.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)
commit202192173bb012d72b1d193495dea588f48ec796
treef082f03274d1704bfc2b70eccbc69634e14d38eb
parentae9b65ee120b94e077b57e5d500de9e27ad2fc66
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 4befc09766
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 4befc09766 ("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