]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFSv4: Clean up handling of privileged operations
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 29 Oct 2012 23:02:20 +0000 (19:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 1 Nov 2012 21:52:57 +0000 (17:52 -0400)
commitdeae4c05d62b3e71bb267c3b00eb3f58094149a5
treec464cc05f70a5acfb154bcf613c2a1c52bcc1dca
parent2b9f52cfab8072ac087200333ea5b0f87c860532
NFSv4: Clean up handling of privileged operations

Privileged rpc calls are those that are run by the state recovery thread,
in cases where we're trying to recover the system after a server reboot
or a network partition. In those cases, we want to fence off all other
rpc calls (see nfs4_begin_drain_session()) so that they don't end up
using stateids or clientids that are in the process of being recovered.

Prior to this patch, we had to set up special callback functions in
order to declare an rpc call as being privileged.
By adding a new field to the sequence arguments, this patch simplifies
things considerably, and allows us to declare the rpc call as privileged
before it is run.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h