From: Trond Myklebust Date: Mon, 20 Mar 2006 18:44:36 +0000 (-0500) Subject: nfs: Use UNSTABLE + COMMIT for NFS O_DIRECT writes X-Git-Tag: v2.6.17-rc1~667^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad61490419b3e494f300e9b2579810ef3bcda31;p=pandora-kernel.git nfs: Use UNSTABLE + COMMIT for NFS O_DIRECT writes Currently NFS O_DIRECT writes use FILE_SYNC so that a COMMIT is not necessary. This simplifies the internal logic, but this could be a difficult workload for some servers. Instead, let's send UNSTABLE writes, and after they all complete, send a COMMIT for the dirty range. After the COMMIT returns successfully, then do the wake_up or fire off aio_complete(). Test plan: Async direct I/O tests against Solaris (or any server that requires committed unstable writes). Reboot server during test. Based on an earlier patch by Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed