Whamcloud - gitweb
LU-5731 osp: flush async updates for osp_sync 59/12359/2
authorFan Yong <fan.yong@intel.com>
Thu, 21 Aug 2014 04:19:25 +0000 (12:19 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 23 Nov 2014 07:00:34 +0000 (07:00 +0000)
commit138a8d14b48951b32a25d2ceada583bfdba494ce
treed5508b740e4091852a571870de2a748ab0da81b0
parent6948e80bc149aa689e09334a70941340143fa2ce
LU-5731 osp: flush async updates for osp_sync

Current osp_sync() only considers the async requests that are
handled by the osp_sync_thread, but ignores the async updates
that are handled directly by the background ptlrpcd threads.
Usually, such async updates are for LFSCK remote repairing.
This patch will flush all of them when dt_sync() is called.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I0e6d54120acbd8ab82cf776222277ae3b805812d
Reviewed-on: http://review.whamcloud.com/12359
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_trans.c