]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca23d463db84e4eecbecd10b1ccc436ae205a091
treeec1393f7e5eeec02a0cc4504d98a138ae458f443
parentfe10eef7440d412403a0e6dc341d928fbd654c0d
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