]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Add a helper pnfs_commit_and_return_layout
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 20 Mar 2013 17:23:33 +0000 (13:23 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 21 Mar 2013 14:31:21 +0000 (10:31 -0400)
commitd52ece9456ddc02c4db1d483ac67576465d94c11
tree2b92c0f41ef7e303dd26f976a8afcdae467b08f0
parent9a81115d738aa8ad39893214e49968f2255f76a2
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>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h