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
26ee7f10
Commit
26ee7f10
authored
Aug 23, 2004
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NFSv4: don't retry CREATE operations if the server returns
NFS4ERR_DELAY on the GETATTR call.
parent
90c1f6b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
fs/nfs/nfs4xdr.c
fs/nfs/nfs4xdr.c
+17
-9
No files found.
fs/nfs/nfs4xdr.c
View file @
26ee7f10
...
...
@@ -1253,9 +1253,9 @@ static int nfs4_xdr_enc_create(struct rpc_rqst *req, uint32_t *p, const struct n
goto
out
;
if
((
status
=
encode_create
(
&
xdr
,
args
))
!=
0
)
goto
out
;
if
((
status
=
encode_getf
attr
(
&
xdr
,
args
->
bitmask
))
!=
0
)
if
((
status
=
encode_getf
h
(
&
xdr
))
!=
0
)
goto
out
;
status
=
encode_getf
h
(
&
xdr
);
status
=
encode_getf
attr
(
&
xdr
,
args
->
bitmask
);
out:
return
status
;
}
...
...
@@ -1326,10 +1326,10 @@ static int nfs4_xdr_enc_open(struct rpc_rqst *req, uint32_t *p, struct nfs_opena
status
=
encode_open
(
&
xdr
,
args
);
if
(
status
)
goto
out
;
status
=
encode_getf
attr
(
&
xdr
,
args
->
bitmask
);
status
=
encode_getf
h
(
&
xdr
);
if
(
status
)
goto
out
;
status
=
encode_getf
h
(
&
xdr
);
status
=
encode_getf
attr
(
&
xdr
,
args
->
bitmask
);
out:
return
status
;
}
...
...
@@ -3221,9 +3221,11 @@ static int nfs4_xdr_dec_create(struct rpc_rqst *rqstp, uint32_t *p, struct nfs4_
goto
out
;
if
((
status
=
decode_create
(
&
xdr
,
&
res
->
dir_cinfo
))
!=
0
)
goto
out
;
if
((
status
=
decode_getf
attr
(
&
xdr
,
res
->
fattr
,
res
->
server
))
!=
0
)
if
((
status
=
decode_getf
h
(
&
xdr
,
res
->
fh
))
!=
0
)
goto
out
;
status
=
decode_getfh
(
&
xdr
,
res
->
fh
);
status
=
decode_getfattr
(
&
xdr
,
res
->
fattr
,
res
->
server
);
if
(
status
==
NFS4ERR_DELAY
)
status
=
0
;
out:
return
status
;
}
...
...
@@ -3297,12 +3299,14 @@ static int nfs4_xdr_dec_open(struct rpc_rqst *rqstp, uint32_t *p, struct nfs_ope
if
(
status
)
goto
out
;
status
=
decode_open
(
&
xdr
,
res
);
if
(
status
)
goto
out
;
status
=
decode_getfattr
(
&
xdr
,
res
->
f_attr
,
res
->
server
);
if
(
status
)
goto
out
;
status
=
decode_getfh
(
&
xdr
,
&
res
->
fh
);
if
(
status
)
goto
out
;
status
=
decode_getfattr
(
&
xdr
,
res
->
f_attr
,
res
->
server
);
if
(
status
==
NFS4ERR_DELAY
)
status
=
0
;
out:
return
status
;
}
...
...
@@ -3348,6 +3352,8 @@ static int nfs4_xdr_dec_open_reclaim(struct rpc_rqst *rqstp, uint32_t *p, struct
if
(
status
)
goto
out
;
status
=
decode_getfattr
(
&
xdr
,
res
->
f_attr
,
res
->
server
);
if
(
status
==
NFS4ERR_DELAY
)
status
=
0
;
out:
return
status
;
}
...
...
@@ -3372,6 +3378,8 @@ static int nfs4_xdr_dec_setattr(struct rpc_rqst *rqstp, uint32_t *p, struct nfs_
if
(
status
)
goto
out
;
status
=
decode_getfattr
(
&
xdr
,
res
->
fattr
,
res
->
server
);
if
(
status
==
NFS4ERR_DELAY
)
status
=
0
;
out:
return
status
;
}
...
...
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