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 26e71bdb5b33..1ae7dd5956c5 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3607,8 +3607,9 @@ static bool nfs4_stateid_is_current(nfs4_stateid *stateid, | |||
3607 | { | 3607 | { |
3608 | nfs4_stateid current_stateid; | 3608 | nfs4_stateid current_stateid; |
3609 | 3609 | ||
3610 | if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode)) | 3610 | /* If the current stateid represents a lost lock, then exit */ |
3611 | return false; | 3611 | if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO) |
3612 | return true; | ||
3612 | return nfs4_stateid_match(stateid, ¤t_stateid); | 3613 | return nfs4_stateid_match(stateid, ¤t_stateid); |
3613 | } | 3614 | } |
3614 | 3615 | ||