|
@@ -590,7 +590,8 @@ nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner)
|
|
state->owner = owner;
|
|
state->owner = owner;
|
|
atomic_inc(&owner->so_count);
|
|
atomic_inc(&owner->so_count);
|
|
list_add(&state->inode_states, &nfsi->open_states);
|
|
list_add(&state->inode_states, &nfsi->open_states);
|
|
- state->inode = igrab(inode);
|
|
|
|
|
|
+ ihold(inode);
|
|
|
|
+ state->inode = inode;
|
|
spin_unlock(&inode->i_lock);
|
|
spin_unlock(&inode->i_lock);
|
|
/* Note: The reclaim code dictates that we add stateless
|
|
/* Note: The reclaim code dictates that we add stateless
|
|
* and read-only stateids to the end of the list */
|
|
* and read-only stateids to the end of the list */
|