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
14a24e99
Commit
14a24e99
authored
Dec 10, 2010
by
J. Bruce Fields
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfsd4: give out delegations more quickly in 4.1 case
Signed-off-by:
J. Bruce Fields
<
bfields@redhat.com
>
parent
229b2a08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
fs/nfsd/nfs4state.c
fs/nfsd/nfs4state.c
+15
-2
No files found.
fs/nfsd/nfs4state.c
View file @
14a24e99
...
...
@@ -2627,6 +2627,19 @@ nfs4_set_claim_prev(struct nfsd4_open *open)
open
->
op_stateowner
->
so_client
->
cl_firststate
=
1
;
}
/* Should we give out recallable state?: */
static
bool
nfsd4_cb_channel_good
(
struct
nfs4_client
*
clp
)
{
if
(
clp
->
cl_cb_state
==
NFSD4_CB_UP
)
return
true
;
/*
* In the sessions case, since we don't have to establish a
* separate connection for callbacks, we assume it's OK
* until we hear otherwise:
*/
return
clp
->
cl_minorversion
&&
clp
->
cl_cb_state
==
NFSD4_CB_UNKNOWN
;
}
/*
* Attempt to hand out a delegation.
*/
...
...
@@ -2635,11 +2648,11 @@ nfs4_open_delegation(struct svc_fh *fh, struct nfsd4_open *open, struct nfs4_sta
{
struct
nfs4_delegation
*
dp
;
struct
nfs4_stateowner
*
sop
=
stp
->
st_stateowner
;
/* XXX: or unknown and nfsv4.1: */
int
cb_up
=
(
sop
->
so_client
->
cl_cb_state
==
NFSD4_CB_UP
);
int
cb_up
;
struct
file_lock
*
fl
;
int
status
,
flag
=
0
;
cb_up
=
nfsd4_cb_channel_good
(
sop
->
so_client
);
flag
=
NFS4_OPEN_DELEGATE_NONE
;
open
->
op_recall
=
0
;
switch
(
open
->
op_claim_type
)
{
...
...
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