projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e35019
)
NFS: COPY handle ERR_OFFLOAD_DENIED
author
Olga Kornievskaia
<kolga@netapp.com>
Tue, 26 Sep 2017 17:51:39 +0000
(13:51 -0400)
committer
Olga Kornievskaia
<olga.kornievskaia@gmail.com>
Wed, 9 Oct 2019 16:06:05 +0000
(12:06 -0400)
If server sends ERR_OFFLOAD_DENIED error, the client must fall
back on doing copy the normal way. Return ENOTSUPP to the vfs and
fallback to regular copy.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
fs/nfs/nfs42proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs42proc.c
b/fs/nfs/nfs42proc.c
index 6ed5a16dc511f79b97ce11b924ed1579b0999037..50538b975aba3285415c40d5879437a112fbb783 100644
(file)
--- a/
fs/nfs/nfs42proc.c
+++ b/
fs/nfs/nfs42proc.c
@@
-391,7
+391,8
@@
ssize_t nfs42_proc_copy(struct file *src, loff_t pos_src,
args.sync = true;
dst_exception.retry = 1;
continue;
- } else if (err == -ESTALE &&
+ } else if ((err == -ESTALE ||
+ err == -NFS4ERR_OFFLOAD_DENIED) &&
!nfs42_files_from_same_server(src, dst)) {
nfs42_do_offload_cancel_async(src, &args.src_stateid);
err = -EOPNOTSUPP;