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
ecac799a
Commit
ecac799a
authored
Mar 09, 2011
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: Fix the setlk error handler
Signed-off-by:
Trond Myklebust
<
Trond.Myklebust@netapp.com
>
parent
b4410c2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
fs/nfs/nfs4proc.c
fs/nfs/nfs4proc.c
+4
-9
No files found.
fs/nfs/nfs4proc.c
View file @
ecac799a
...
...
@@ -4173,23 +4173,18 @@ static const struct rpc_call_ops nfs4_recover_lock_ops = {
static
void
nfs4_handle_setlk_error
(
struct
nfs_server
*
server
,
struct
nfs4_lock_state
*
lsp
,
int
new_lock_owner
,
int
error
)
{
struct
nfs_client
*
clp
=
server
->
nfs_client
;
struct
nfs4_state
*
state
=
lsp
->
ls_state
;
switch
(
error
)
{
case
-
NFS4ERR_ADMIN_REVOKED
:
case
-
NFS4ERR_BAD_STATEID
:
case
-
NFS4ERR_EXPIRED
:
lsp
->
ls_seqid
.
flags
&=
~
NFS_SEQID_CONFIRMED
;
if
(
new_lock_owner
!=
0
||
(
lsp
->
ls_flags
&
NFS_LOCK_INITIALIZED
)
!=
0
)
nfs4_state_mark_reclaim_nograce
(
clp
,
state
);
lsp
->
ls_seqid
.
flags
&=
~
NFS_SEQID_CONFIRMED
;
nfs4_schedule_stateid_recovery
(
server
,
lsp
->
ls_state
);
break
;
case
-
NFS4ERR_STALE_STATEID
:
if
(
new_lock_owner
!=
0
||
(
lsp
->
ls_flags
&
NFS_LOCK_INITIALIZED
)
!=
0
)
nfs4_state_mark_reclaim_reboot
(
clp
,
state
);
lsp
->
ls_seqid
.
flags
&=
~
NFS_SEQID_CONFIRMED
;
case
-
NFS4ERR_EXPIRED
:
nfs4_schedule_lease_recovery
(
server
->
nfs_client
);
};
}
...
...
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