Whamcloud - gitweb
- fixes about cobd_switch() which caused issues with cleanup:
authoryury <yury>
Mon, 22 Aug 2005 09:48:30 +0000 (09:48 +0000)
committeryury <yury>
Mon, 22 Aug 2005 09:48:30 +0000 (09:48 +0000)
commitf6ed61ea624a2783b37e3f22f6a98cabda419b1f
tree3557d509769c755b405babbfcfb4cf41605affd6
parentee3a0fab9766a36a36d5f7ebc1ba35592e9c00c7
- fixes about cobd_switch() which caused issues with cleanup:

  - avoid double connections to choosen export due to using lctl on umounted client (1st connection) and after that mount the client (2nd connection). Avoid double EA init along with double connection.

  - disconnect correct export on cobd_disconnect()

- avoid possible oops on double cobd_cleanup() due to freed cmobd->write_srv, but not zerod out after that.
- in cobd_switch() set ->cache_on field into new value only if COBD_CONNECT or COBD_SWITCH bias is specified.

- in LMV and LOV in lconf cleanup LMV and LOV first and after that cleanup all their targets. This is because LMV, etc. cleanup needs targets OBD attached, with correct obd_name, etc. This fixes prevents oops in disconnect time whrn using test45 configuration.
lustre/cmobd/cm_obd.c
lustre/cobd/cache_obd.c
lustre/utils/lconf