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
Kirill Smelkov
linux
Commits
0eb6f20a
Commit
0eb6f20a
authored
Mar 12, 2013
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: STALE_STATEID cleanup
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
78389046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
15 deletions
+6
-15
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+6
-15
No files found.
fs/nfsd/nfs4state.c
View file @
0eb6f20a
...
@@ -3282,16 +3282,6 @@ static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_ol_stateid *s
...
@@ -3282,16 +3282,6 @@ static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_ol_stateid *s
return
nfs_ok
;
return
nfs_ok
;
}
}
static
int
STALE_STATEID
(
stateid_t
*
stateid
,
struct
nfsd_net
*
nn
)
{
if
(
stateid
->
si_opaque
.
so_clid
.
cl_boot
==
nn
->
boot_time
)
return
0
;
dprintk
(
"NFSD: stale stateid "
STATEID_FMT
"!
\n
"
,
STATEID_VAL
(
stateid
));
return
1
;
}
static
inline
int
static
inline
int
access_permit_read
(
struct
nfs4_ol_stateid
*
stp
)
access_permit_read
(
struct
nfs4_ol_stateid
*
stp
)
{
{
...
@@ -3422,19 +3412,20 @@ static __be32 nfsd4_lookup_stateid(stateid_t *stateid, unsigned char typemask,
...
@@ -3422,19 +3412,20 @@ static __be32 nfsd4_lookup_stateid(stateid_t *stateid, unsigned char typemask,
struct
nfsd_net
*
nn
)
struct
nfsd_net
*
nn
)
{
{
struct
nfs4_client
*
cl
;
struct
nfs4_client
*
cl
;
__be32
status
;
if
(
ZERO_STATEID
(
stateid
)
||
ONE_STATEID
(
stateid
))
if
(
ZERO_STATEID
(
stateid
)
||
ONE_STATEID
(
stateid
))
return
nfserr_bad_stateid
;
return
nfserr_bad_stateid
;
if
(
STALE_STATEID
(
stateid
,
nn
))
status
=
lookup_clientid
(
&
stateid
->
si_opaque
.
so_clid
,
sessions
,
nn
,
&
cl
);
if
(
status
==
nfserr_stale_clientid
)
return
nfserr_stale_stateid
;
return
nfserr_stale_stateid
;
cl
=
find_confirmed_client
(
&
stateid
->
si_opaque
.
so_clid
,
sessions
,
nn
);
if
(
status
)
if
(
!
cl
)
return
status
;
return
nfserr_expired
;
*
s
=
find_stateid_by_type
(
cl
,
stateid
,
typemask
);
*
s
=
find_stateid_by_type
(
cl
,
stateid
,
typemask
);
if
(
!*
s
)
if
(
!*
s
)
return
nfserr_bad_stateid
;
return
nfserr_bad_stateid
;
return
nfs_ok
;
return
nfs_ok
;
}
}
/*
/*
...
...
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