Whamcloud - gitweb
LU-5188 osp: return 1 if osp_sync_xxx_job issue RPC 28/10828/4
authorWang Di <di.wang@intel.com>
Wed, 25 Jun 2014 23:06:55 +0000 (16:06 -0700)
committerAndreas Dilger <andreas.dilger@intel.com>
Fri, 27 Jun 2014 17:33:59 +0000 (17:33 +0000)
commit73f47cdda42305df0be57e0ea6252eb6fd36db55
tree1082dd821eb1a33af85e24e93fbf25c041baf02c
parent633b0534dbf0e5e3176b74aa6ca54129946bfbc9
LU-5188 osp: return 1 if osp_sync_xxx_job issue RPC

Return 1 if osp_sync_new_xxx_job() issue RPC, so
sp_sync_process_record() can decrease opd_syn_rpc_in_flight
and opd_syn_rpc_in_progress correctly if RPC is not
being sent, otherwise the opd_sync_thread will not be
stopped, caused LBUG (see LU-5244)

osp_sync_thread()) ASSERTION( count < 10 ) failed:

The problem is introduced by

http://review.whamcloud.com/10706

Change-Id: Iaf6dd6c4e1938a0c5d44a40c303eda1695b72105
Signed-off-by: Wang Di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/10828
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/osp/osp_sync.c