NFS: skip recovery of copy open on dest server
Mark the open created for the source file on the destination server. Then if this open is going thru a recovery, then fail the recovery as we don't need to be recoving a "fake" open. We need to fail the ongoing READs and vfs_copy_file_range(). Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
This commit is contained in:

committed by
Olga Kornievskaia

parent
ec4b092508
commit
0b9018b9ca
@@ -352,6 +352,7 @@ nfs42_ssc_open(struct vfsmount *ss_mnt, struct nfs_fh *src_fh,
|
||||
if (ctx->state == NULL)
|
||||
goto out_stateowner;
|
||||
|
||||
set_bit(NFS_SRV_SSC_COPY_STATE, &ctx->state->flags);
|
||||
set_bit(NFS_OPEN_STATE, &ctx->state->flags);
|
||||
memcpy(&ctx->state->open_stateid.other, &stateid->other,
|
||||
NFS4_STATEID_OTHER_SIZE);
|
||||
|
Reference in New Issue
Block a user