diff options
-rw-r--r-- | fs/nfs/nfs4proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 44e088dc357c..4ae8141452c9 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4011,8 +4011,9 @@ static bool nfs4_stateid_is_current(nfs4_stateid *stateid, | |||
4011 | { | 4011 | { |
4012 | nfs4_stateid current_stateid; | 4012 | nfs4_stateid current_stateid; |
4013 | 4013 | ||
4014 | if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode)) | 4014 | /* If the current stateid represents a lost lock, then exit */ |
4015 | return false; | 4015 | if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) |
4016 | return true; | ||
4016 | return nfs4_stateid_match(stateid, ¤t_stateid); | 4017 | return nfs4_stateid_match(stateid, ¤t_stateid); |
4017 | } | 4018 | } |
4018 | 4019 | ||