NFSv4/4.1: Fix nfs4_schedule_state_recovery abuses
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Mar 2011 21:00:53 +0000 (16:00 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 11 Mar 2011 20:18:22 +0000 (15:18 -0500)
commit0400a6b0cb756f976bae32ae8db47bfa9853897c
treeec1393f7e5eeec02a0cc4504d98a138ae458f443
parentc34c32ea97718bb24fc06158733580003ba89211
NFSv4/4.1: Fix nfs4_schedule_state_recovery abuses

nfs4_schedule_state_recovery() should only be used when we need to force
the state manager to check the lease. If we just want to start the
state manager in order to handle a state recovery situation, we should be
using nfs4_schedule_state_manager().

This patch fixes the abuses of nfs4_schedule_state_recovery() by replacing
its use with a set of helper functions that do the right thing.

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