cl_object_attr_get() must be called under cl_object_attr_lock
get. There is place in lov_getstripe where it is called
without that lock.
Lustre-change: https://review.whamcloud.com/30052
Lustre-commit:
80515fa15ee76fb0174fd3be80c4a113a8d3c875
Signed-off-by: Mikhail Pershin <mike.pershin@intel.com>
Change-Id: Ia0a2322ba4ff0ff4affb081375cb108fbf2988c4
Reviewed-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30586
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
attr.cat_size = 0;
cl_obj = cl_object_top(&obj->lo_cl);
+ cl_object_attr_lock(cl_obj);
cl_object_attr_get(env, cl_obj, &attr);
+ cl_object_attr_unlock(cl_obj);
/* return the last instantiated component if file size
* is non-zero, otherwise, return the last component.*/