Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-13195 osp: track destroyed OSP object
[fs/lustre-release.git]
/
lustre
/
osp
/
osp_object.c
diff --git
a/lustre/osp/osp_object.c
b/lustre/osp/osp_object.c
index
8e8b1ad
..
5fb55bf
100644
(file)
--- a/
lustre/osp/osp_object.c
+++ b/
lustre/osp/osp_object.c
@@
-582,6
+582,8
@@
int osp_attr_get(const struct lu_env *env, struct dt_object *dt,
if (is_ost_obj(&dt->do_lu) && obj->opo_non_exist)
RETURN(-ENOENT);
+ if (obj->opo_destroyed)
+ RETURN(-ENOENT);
spin_lock(&obj->opo_lock);
if (obj->opo_attr.la_valid != 0 && !obj->opo_stale) {