From: Peng Tao Date: Mon, 24 Oct 2011 03:21:17 +0000 (-0700) Subject: nfs4: serialize layoutcommit X-Git-Tag: v3.2-rc1~52^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92407e75ce45b41c46944891711fd8faf0714d84;p=pandora-kernel.git nfs4: serialize layoutcommit Current pnfs_layoutcommit_inode can not handle parallel layoutcommit. And as Trond suggested , there is no need for client to optimize for parallel layoutcommit. So add NFS_INO_LAYOUTCOMMITTING flag to mark inflight layoutcommit and serialize lalyoutcommit with it. Also mark_inode_dirty_sync if pnfs_layoutcommit_inode fails to issue layoutcommit. Reported-by: Vitaliy Gusev Signed-off-by: Peng Tao Signed-off-by: Jim Rees Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed