aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r--fs/nfs/nfs4state.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 6818964bb7c0..25b7cf6a91d9 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1415,14 +1415,16 @@ restart:
1415 if (status >= 0) { 1415 if (status >= 0) {
1416 status = nfs4_reclaim_locks(state, ops); 1416 status = nfs4_reclaim_locks(state, ops);
1417 if (status >= 0) { 1417 if (status >= 0) {
1418 spin_lock(&state->state_lock); 1418 if (test_bit(NFS_DELEGATED_STATE, &state->flags) != 0) {
1419 list_for_each_entry(lock, &state->lock_states, ls_locks) { 1419 spin_lock(&state->state_lock);
1420 if (!test_bit(NFS_LOCK_INITIALIZED, &lock->ls_flags)) 1420 list_for_each_entry(lock, &state->lock_states, ls_locks) {
1421 pr_warn_ratelimited("NFS: " 1421 if (!test_bit(NFS_LOCK_INITIALIZED, &lock->ls_flags))
1422 "%s: Lock reclaim " 1422 pr_warn_ratelimited("NFS: "
1423 "failed!\n", __func__); 1423 "%s: Lock reclaim "
1424 "failed!\n", __func__);
1425 }
1426 spin_unlock(&state->state_lock);
1424 } 1427 }
1425 spin_unlock(&state->state_lock);
1426 nfs4_put_open_state(state); 1428 nfs4_put_open_state(state);
1427 spin_lock(&sp->so_lock); 1429 spin_lock(&sp->so_lock);
1428 goto restart; 1430 goto restart;