NFSv4.2 fix unnecessary retry in nfs4_copy_file_range
Currently nfs42_proc_copy_file_range() can not return EAGAIN.
Fixes: e4648aa4f9
("NFS recover from destination server reboot for copies")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
e7f4509944
commit
45ac486ecf
@ -133,15 +133,9 @@ static ssize_t nfs4_copy_file_range(struct file *file_in, loff_t pos_in,
|
|||||||
struct file *file_out, loff_t pos_out,
|
struct file *file_out, loff_t pos_out,
|
||||||
size_t count, unsigned int flags)
|
size_t count, unsigned int flags)
|
||||||
{
|
{
|
||||||
ssize_t ret;
|
|
||||||
|
|
||||||
if (file_inode(file_in) == file_inode(file_out))
|
if (file_inode(file_in) == file_inode(file_out))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
retry:
|
return nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count);
|
||||||
ret = nfs42_proc_copy(file_in, pos_in, file_out, pos_out, count);
|
|
||||||
if (ret == -EAGAIN)
|
|
||||||
goto retry;
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence)
|
static loff_t nfs4_file_llseek(struct file *filep, loff_t offset, int whence)
|
||||||
|
Loading…
Reference in New Issue
Block a user