Whamcloud - gitweb
LU-9008 pfl: dynamic layout modification with write/truncate
authorBobi Jam <bobijam.xu@intel.com>
Thu, 6 Apr 2017 00:13:41 +0000 (08:13 +0800)
committerJinshan Xiong <jinshan.xiong@intel.com>
Thu, 6 Apr 2017 04:53:00 +0000 (21:53 -0700)
commit7107e54983b0a701c5c02a1e3c521302e8f79810
tree4c3b506e91a85ba369ee0c4bc75b28e26444beca
parent03b86ce064c224ed6ed77675183bfd35d493f918
LU-9008 pfl: dynamic layout modification with write/truncate

* in lov_init_composite(), skip init sub object without LCME_FL_INIT
  layout component.
* issue layout intent RPC during write/trunc ops when try to write to
  an un-init-ed component (even if at the lock stage).
* After layout intent RPC issued, restart the IO.
* get rid of unused lov_layout_operations::llo_install() interface.
* add an empty mdt_layout_change() interface to handle intent layout
  write RPC.

Reviewed-on: https://review.whamcloud.com/25317

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I2f79482187d2af2660dd86e55da3f5dc0138e94a
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
24 files changed:
lustre/include/cl_object.h
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_sec.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/vvp_io.c
lustre/lov/lov_ea.c
lustre/lov/lov_internal.h
lustre/lov/lov_io.c
lustre/lov/lov_lock.c
lustre/lov/lov_object.c
lustre/lov/lov_pack.c
lustre/lov/lov_page.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_request.c
lustre/mdt/mdt_handler.c
lustre/obdclass/genops.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/sec.c
lustre/tests/sanity-pfl.sh
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi_layout.c