Whamcloud - gitweb
LU-9771 osp: no delay commit callback for layout version 00/30000/10
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 8 Nov 2017 23:30:44 +0000 (23:30 +0000)
committerJinshan Xiong <jinshan.xiong@intel.com>
Fri, 24 Nov 2017 03:11:05 +0000 (03:11 +0000)
commitf801a022e18a0be4150c01a1449ec3a1228e4683
treecf4b871ca307353b4cc9cd2869016d3b2cea7429
parent5999c0b881e8d9f2b431c842bdd1717115a82b7c
LU-9771 osp: no delay commit callback for layout version

OSP batches commit callback by one second interval. However, this
mechanism would cause problem to FLR because the clients has to
wait up to one second before they are able to write OST objects.

This patch registers immediate commit callback if the SETATTR is
for layout version. It also cleans up the code a little bit.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I5fa0fea9a8c8b23379118609bee9a36f412a191d
Reviewed-on: https://review.whamcloud.com/30000
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/osp/osp_internal.h
lustre/osp/osp_sync.c