|
@@ -4011,8 +4011,9 @@ static bool nfs4_stateid_is_current(nfs4_stateid *stateid,
|
|
{
|
|
{
|
|
nfs4_stateid current_stateid;
|
|
nfs4_stateid current_stateid;
|
|
|
|
|
|
- if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode))
|
|
|
|
- return false;
|
|
|
|
|
|
+ /* If the current stateid represents a lost lock, then exit */
|
|
|
|
+ if (nfs4_set_rw_stateid(¤t_stateid, ctx, l_ctx, fmode) == -EIO)
|
|
|
|
+ return true;
|
|
return nfs4_stateid_match(stateid, ¤t_stateid);
|
|
return nfs4_stateid_match(stateid, ¤t_stateid);
|
|
}
|
|
}
|
|
|
|
|