NFSv4: Fix a bug in __nfs4_find_state_byowner
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 3 Jul 2007 18:41:19 +0000 (14:41 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:40 +0000 (23:40 -0400)
commit1c816efa245111c52858fbe55d99474f3c149dd3
treedf2d6fdd574a3a5352b5c246366cdeb0e8dcc43a
parent1b45c46cf75d9c48eb611d5cc41607ac1f046606
NFSv4: Fix a bug in __nfs4_find_state_byowner

The test for state->state == 0 does not tell you that the stateid is in the
process of being freed. It really tells you that the stateid is not yet
initialised...

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4state.c