NFS append COMMIT after synchronous COPY
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 8 May 2017 22:02:24 +0000 (18:02 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 8 May 2017 23:01:06 +0000 (19:01 -0400)
commite092693443b995c8e3a565a73b5fdb05f1260f9b
treee3d20255e0cae9262b5950f3e86f78643a8ab7f4
parent28cf22d0ba283deccc30b71de5f34d222cf9aa4c
NFS append COMMIT after synchronous COPY

Instead of messing with the commit path which has been causing issues,
add a COMMIT op after the COPY and ask for stable copies in the first
space.

It saves a round trip, since after the COPY, the client sends a COMMIT
anyway.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/internal.h
fs/nfs/nfs42proc.c
fs/nfs/nfs42xdr.c
fs/nfs/write.c
include/linux/nfs_xdr.h