Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
820bf85c
Commit
820bf85c
authored
Jan 11, 2017
by
Anna Schumaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFS: Remove nfs4_wait_for_completion_rpc_task()
Signed-off-by:
Anna Schumaker
<
Anna.Schumaker@Netapp.com
>
parent
eeea5361
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+7
-15
No files found.
fs/nfs/nfs4proc.c
View file @
820bf85c
...
@@ -1245,14 +1245,6 @@ static void nfs4_opendata_put(struct nfs4_opendata *p)
...
@@ -1245,14 +1245,6 @@ static void nfs4_opendata_put(struct nfs4_opendata *p)
kref_put
(
&
p
->
kref
,
nfs4_opendata_free
);
kref_put
(
&
p
->
kref
,
nfs4_opendata_free
);
}
}
static
int
nfs4_wait_for_completion_rpc_task
(
struct
rpc_task
*
task
)
{
int
ret
;
ret
=
rpc_wait_for_completion_task
(
task
);
return
ret
;
}
static
bool
nfs4_mode_match_open_stateid
(
struct
nfs4_state
*
state
,
static
bool
nfs4_mode_match_open_stateid
(
struct
nfs4_state
*
state
,
fmode_t
fmode
)
fmode_t
fmode
)
{
{
...
@@ -2039,7 +2031,7 @@ static int _nfs4_proc_open_confirm(struct nfs4_opendata *data)
...
@@ -2039,7 +2031,7 @@ static int _nfs4_proc_open_confirm(struct nfs4_opendata *data)
task
=
rpc_run_task
(
&
task_setup_data
);
task
=
rpc_run_task
(
&
task_setup_data
);
if
(
IS_ERR
(
task
))
if
(
IS_ERR
(
task
))
return
PTR_ERR
(
task
);
return
PTR_ERR
(
task
);
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
if
(
status
!=
0
)
{
if
(
status
!=
0
)
{
data
->
cancelled
=
1
;
data
->
cancelled
=
1
;
smp_wmb
();
smp_wmb
();
...
@@ -2206,7 +2198,7 @@ static int nfs4_run_open_task(struct nfs4_opendata *data, int isrecover)
...
@@ -2206,7 +2198,7 @@ static int nfs4_run_open_task(struct nfs4_opendata *data, int isrecover)
task
=
rpc_run_task
(
&
task_setup_data
);
task
=
rpc_run_task
(
&
task_setup_data
);
if
(
IS_ERR
(
task
))
if
(
IS_ERR
(
task
))
return
PTR_ERR
(
task
);
return
PTR_ERR
(
task
);
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
if
(
status
!=
0
)
{
if
(
status
!=
0
)
{
data
->
cancelled
=
1
;
data
->
cancelled
=
1
;
smp_wmb
();
smp_wmb
();
...
@@ -5732,7 +5724,7 @@ static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, co
...
@@ -5732,7 +5724,7 @@ static int _nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, co
return
PTR_ERR
(
task
);
return
PTR_ERR
(
task
);
if
(
!
issync
)
if
(
!
issync
)
goto
out
;
goto
out
;
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
if
(
status
!=
0
)
if
(
status
!=
0
)
goto
out
;
goto
out
;
status
=
data
->
rpc_status
;
status
=
data
->
rpc_status
;
...
@@ -6002,7 +5994,7 @@ static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *
...
@@ -6002,7 +5994,7 @@ static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *
status
=
PTR_ERR
(
task
);
status
=
PTR_ERR
(
task
);
if
(
IS_ERR
(
task
))
if
(
IS_ERR
(
task
))
goto
out
;
goto
out
;
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
rpc_put_task
(
task
);
rpc_put_task
(
task
);
out:
out:
request
->
fl_flags
=
fl_flags
;
request
->
fl_flags
=
fl_flags
;
...
@@ -6229,7 +6221,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *f
...
@@ -6229,7 +6221,7 @@ static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *f
task
=
rpc_run_task
(
&
task_setup_data
);
task
=
rpc_run_task
(
&
task_setup_data
);
if
(
IS_ERR
(
task
))
if
(
IS_ERR
(
task
))
return
PTR_ERR
(
task
);
return
PTR_ERR
(
task
);
ret
=
nfs4_wait_for_completion_rpc
_task
(
task
);
ret
=
rpc_wait_for_completion
_task
(
task
);
if
(
ret
==
0
)
{
if
(
ret
==
0
)
{
ret
=
data
->
rpc_status
;
ret
=
data
->
rpc_status
;
if
(
ret
)
if
(
ret
)
...
@@ -8297,7 +8289,7 @@ static int nfs41_proc_reclaim_complete(struct nfs_client *clp,
...
@@ -8297,7 +8289,7 @@ static int nfs41_proc_reclaim_complete(struct nfs_client *clp,
status
=
PTR_ERR
(
task
);
status
=
PTR_ERR
(
task
);
goto
out
;
goto
out
;
}
}
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
if
(
status
==
0
)
if
(
status
==
0
)
status
=
task
->
tk_status
;
status
=
task
->
tk_status
;
rpc_put_task
(
task
);
rpc_put_task
(
task
);
...
@@ -8529,7 +8521,7 @@ nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout, gfp_t gfp_flags)
...
@@ -8529,7 +8521,7 @@ nfs4_proc_layoutget(struct nfs4_layoutget *lgp, long *timeout, gfp_t gfp_flags)
task
=
rpc_run_task
(
&
task_setup_data
);
task
=
rpc_run_task
(
&
task_setup_data
);
if
(
IS_ERR
(
task
))
if
(
IS_ERR
(
task
))
return
ERR_CAST
(
task
);
return
ERR_CAST
(
task
);
status
=
nfs4_wait_for_completion_rpc
_task
(
task
);
status
=
rpc_wait_for_completion
_task
(
task
);
if
(
status
==
0
)
{
if
(
status
==
0
)
{
status
=
nfs4_layoutget_handle_exception
(
task
,
lgp
,
&
exception
);
status
=
nfs4_layoutget_handle_exception
(
task
,
lgp
,
&
exception
);
*
timeout
=
exception
.
timeout
;
*
timeout
=
exception
.
timeout
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment