diff options
| -rw-r--r-- | fs/nfs/nfs4state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 5db324635e92..d854693a15b0 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
| @@ -1725,7 +1725,8 @@ restart: | |||
| 1725 | if (!test_and_clear_bit(ops->owner_flag_bit, | 1725 | if (!test_and_clear_bit(ops->owner_flag_bit, |
| 1726 | &sp->so_flags)) | 1726 | &sp->so_flags)) |
| 1727 | continue; | 1727 | continue; |
| 1728 | atomic_inc(&sp->so_count); | 1728 | if (!atomic_inc_not_zero(&sp->so_count)) |
| 1729 | continue; | ||
| 1729 | spin_unlock(&clp->cl_lock); | 1730 | spin_unlock(&clp->cl_lock); |
| 1730 | rcu_read_unlock(); | 1731 | rcu_read_unlock(); |
| 1731 | 1732 | ||
