-
Vladimir Saveliev authored
ll_dom_lock_cancel() should zero kms attribute similar to mdc_ldlm_blocking_ast0(). In order to avoid code duplication between mdc_ldlm_blocking_ast0() and ll_dom_lock_cancel() - add new cl_object_operations method - coo_object_flush() to reach mdc's blocking ast from llite level. Tests illustrating the issue are added. Lustre-change: https://review.whamcloud.com/34858 Lustre-commit: 707bab62 LU-12704 lov: check all entries in lov_flush_composite Check all layout entries for DOM layout and exit with -ENODATA if no one exists. Caller consider that as valid case due to layout change. Define llo_flush methods for all layouts as required by lov_dispatch(). Patch cleans up also cl_dom_size field in cl_layout which was used in previous ll_dom_lock_cancel() implementation Run lov_flush_composite under down_read lov->lo_type_guard to avoid race with layout change. Lustre-change: https://review.whamcloud.com/36368 Lustre-commit: 44460570 Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com> Change-Id: I2b100ead6d420dbf561bc61be973d64dad317214 Reviewed-on: https://review.whamcloud.com/40296 Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
98ee0d5b