From: Trond Myklebust Date: Wed, 20 Mar 2013 17:23:33 +0000 (-0400) Subject: NFSv4.1: Add a helper pnfs_commit_and_return_layout X-Git-Tag: v3.9-rc5~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=240286725d854331422cb15957f8d9bf2741d4e3;p=pandora-kernel.git NFSv4.1: Add a helper pnfs_commit_and_return_layout In order to be able to safely return the layout in nfs4_proc_setattr, we need to block new uses of the layout, wait for all outstanding users of the layout to complete, commit the layout and then return it. This patch adds a helper in order to do all this safely. Signed-off-by: Trond Myklebust Cc: Boaz Harrosh --- Reading git-diff-tree failed