NFS: Remove redundant waits for O_DIRECT in fsync() and write_begin()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 23 Jun 2016 13:55:48 +0000 (09:55 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 5 Jul 2016 23:11:05 +0000 (19:11 -0400)
commitf508d46ae41a796036aef566637685dbf83b554f
tree0e3354b3062b422e0c9e4f4465c1a8f6b1fec58a
parentf7b5c340aca87d736a6b15aa40bf135f1baab011
NFS: Remove redundant waits for O_DIRECT in fsync() and write_begin()

We're now waiting immediately after taking the locks, so waiting
in fsync() and write_begin() is either redundant or potentially
subject to livelock (if not holding the lock).

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