diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2013-08-09 12:49:29 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-09-03 15:26:36 -0400 |
commit | 160881e33d88129faeb08130865fdc0177ba1aa3 (patch) | |
tree | 2032bba42f17e498d9824646fe5abb36d3efc38a /fs | |
parent | 3bd2384a77e7b277c1fd8dd4ebb071162e2d85b6 (diff) |
NFS: Enable nfs4_setup_sequence() for DELEGRETURN
When CONFIG_NFS_V4_1 is disabled, the calls to nfs4_setup_sequence()
and nfs4_sequence_done() are compiled out for the DELEGRETURN
operation. To allow NFSv4.0 transport blocking to work for
DELEGRETURN, these call sites have to be present all the time.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e9e58cc34c61..6807e9b8b593 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4918,7 +4918,6 @@ static void nfs4_delegreturn_release(void *calldata) | |||
4918 | kfree(calldata); | 4918 | kfree(calldata); |
4919 | } | 4919 | } |
4920 | 4920 | ||
4921 | #if defined(CONFIG_NFS_V4_1) | ||
4922 | static void nfs4_delegreturn_prepare(struct rpc_task *task, void *data) | 4921 | static void nfs4_delegreturn_prepare(struct rpc_task *task, void *data) |
4923 | { | 4922 | { |
4924 | struct nfs4_delegreturndata *d_data; | 4923 | struct nfs4_delegreturndata *d_data; |
@@ -4930,12 +4929,9 @@ static void nfs4_delegreturn_prepare(struct rpc_task *task, void *data) | |||
4930 | &d_data->res.seq_res, | 4929 | &d_data->res.seq_res, |
4931 | task); | 4930 | task); |
4932 | } | 4931 | } |
4933 | #endif /* CONFIG_NFS_V4_1 */ | ||
4934 | 4932 | ||
4935 | static const struct rpc_call_ops nfs4_delegreturn_ops = { | 4933 | static const struct rpc_call_ops nfs4_delegreturn_ops = { |
4936 | #if defined(CONFIG_NFS_V4_1) | ||
4937 | .rpc_call_prepare = nfs4_delegreturn_prepare, | 4934 | .rpc_call_prepare = nfs4_delegreturn_prepare, |
4938 | #endif /* CONFIG_NFS_V4_1 */ | ||
4939 | .rpc_call_done = nfs4_delegreturn_done, | 4935 | .rpc_call_done = nfs4_delegreturn_done, |
4940 | .rpc_release = nfs4_delegreturn_release, | 4936 | .rpc_release = nfs4_delegreturn_release, |
4941 | }; | 4937 | }; |