nfs/filelayout: set layoutcommit depending on write verifier
authorPeng Tao <tao.peng@primarydata.com>
Thu, 7 Aug 2014 02:15:03 +0000 (10:15 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:01 +0000 (12:47 -0700)
commitbc7d4b8fd0917b4b84a8911185d34a97c696f219
tree4f6478838ad3a80e691b6cc70efd0dc3c552e3c5
parent378520b837cf4da769600b83690d8e825f16a611
nfs/filelayout: set layoutcommit depending on write verifier

Following http://www.rfc-editor.org/errata_search.php?rfc=5661&eid=2751
Don't set layoutcommit for commit_through_mds case.
For FILE_SYNC writes, don't set layoutcommit.
For DATA_SYNC wirtes, set layout commit right after wirtes done.
For UNSTABLE writes, set layout commit when commit done.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/filelayout/filelayout.c