commit | 240286725d854331422cb15957f8d9bf2741d4e3 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Mar 20 13:23:33 2013 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Thu Mar 21 10:31:21 2013 -0400 |
tree | 2b92c0f41ef7e303dd26f976a8afcdae467b08f0 | |
parent | 24956804349ca0eadcdde032d65e8c00b4214096 [diff] |
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 <Trond.Myklebust@netapp.com> Cc: Boaz Harrosh <bharrosh@panasas.com>