Whamcloud - gitweb
LU-2349 osp: Move log ops init to module init.
authorwangdi <di.wang@whamcloud.com>
Fri, 16 Nov 2012 19:16:29 +0000 (11:16 -0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 18 Jan 2013 16:57:35 +0000 (11:57 -0500)
commit702754812e7221102deb41aaeed4715a734a75f0
treeeb4f7ae63db02cca0e5f905dc26919914d250b81
parent3d0b6e46021194553cab80e09319dacd2aeea9cb
LU-2349 osp: Move log ops init to module init.

Because osp_mds_ost_orig_logops and changelog_orig_logops
will be shared by all of the llog ctxt for all OSPs/MDDs
on one node, if we keep changing that during obd_setup
process, the loc_logops might be changed, i.e. lop_add
and lop_declare_add might become zero for a while. So if
other healthy device(like another osp) tried to delcare_add
or add record during the time, it will get ENOTSUPP.(especially
for DNE). So the ops initialization should move to module init.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I1e46d2163c2431c43c369adb7b3c16e664260a4e
Reviewed-on: http://review.whamcloud.com/4608
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_device.c
lustre/osp/osp_dev.c
lustre/osp/osp_internal.h
lustre/osp/osp_sync.c