]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Referrals not inheriting proto setting from parent
authorCalum Mackay <calum.mackay@oracle.com>
Thu, 5 Jul 2018 16:08:08 +0000 (17:08 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Jul 2018 17:19:40 +0000 (13:19 -0400)
commit10ce266be7476be87e853beaaf4bab7e523f3f91
tree42d0011a99e3d824d944d525bbcd4f632339142d
parent0a7c7f60c84695b208f59e02bf5f0ad3eca84c0e
nfs: Referrals not inheriting proto setting from parent

Commit 6e7a9acdbe6b ("nfs: Referrals should use the same proto setting
as their parent") encloses the fix with #ifdef CONFIG_SUNRPC_XPRT_RDMA.

CONFIG_SUNRPC_XPRT_RDMA is a tristate option, so it should be tested
with #if IS_ENABLED().

Fixes: 6e7a9acdbe6b ("nfs: Referrals should use the same proto setting as their parent")
Reported-by: Helen Chao <helen.chao@oracle.com>
Tested-by: Helen Chao <helen.chao@oracle.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Bill Baker <bill.baker@oracle.com>
Signed-off-by: Calum Mackay <calum.mackay@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4client.c