NFS: Don't do a full flush to disk on close() if we hold a delegation
commit14546c337588370dced50dcaf43398939be9829e
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 6 May 2012 23:10:59 +0000 (6 19:10 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 8 May 2012 16:53:21 +0000 (8 12:53 -0400)
tree4eca561ff63c86ce9fcbd4dd2cc96cdf3989283e
parent1385b8117325e79f74c1e7d1cbf45c789deb85c5
NFS: Don't do a full flush to disk on close() if we hold a delegation

If we hold a delegation then we know that it should be safe to continue
to cache the data beyond the close(). However since the process that wrote
the data may die after close(), we may still want to send the data to
server before those RPCSEC_GSS credentials expire. We therefore compromise
by starting writeback to the server, but don't wait for completion.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c