Whamcloud - gitweb
Branch b1_4_mountconf
authornathan <nathan>
Thu, 2 Feb 2006 01:39:37 +0000 (01:39 +0000)
committernathan <nathan>
Thu, 2 Feb 2006 01:39:37 +0000 (01:39 +0000)
commit6b5f7efed3bd2b5102efd5f7d9604e12c1715f94
tree42aa719bbb8f470f386a0dd91c4127d92b0f31c4
parent2972033f0b0104a01549382efb9598dd636e23a1
Branch b1_4_mountconf
b=4482
Problem with the mds notify method of online ost addition - lov_notify
can't notify the mds until the mds is set up, due to a check of obd_set_up
in obd_notify.  But obd_set_up isn't set until
mds_postrecov/mds_postsetup/mds_setup returns to class_setup.

(This can be seen by adding ost's before adding the mdt - the other
order doesn't have the problem because there are no osc's in the lov
during mds_postrecov at that point, so no notifies.)

So I hacked in an additional flag check to obd_notify that happens only to
be set for the mds at this point in it's life: obd_async_recov.  Don't hurt
me.
lustre/include/linux/lustre_disk.h
lustre/include/linux/lustre_idl.h
lustre/include/linux/obd_class.h
lustre/mds/handler.c
lustre/mds/mds_lov.c
lustre/utils/mkfs_lustre.c