CERROR("OBD device %d still set up\n", obd->obd_minor);
GOTO(out, err=-EBUSY);
}
- if (! (obd->obd_flags & OBD_ATTACHED) ) {
+ if (!(obd->obd_flags & OBD_ATTACHED) ) {
CERROR("OBD device %d not attached\n", obd->obd_minor);
GOTO(out, err=-ENODEV);
}
- if ( !list_empty(&obd->obd_exports) ) {
- CERROR("OBD device %d has exports\n",
- obd->obd_minor);
+#warning FIXME: Mike, we probably need some sort of "force detach" here
+ if (!list_empty(&obd->obd_exports) ) {
+ CERROR("OBD device %d (%p) has exports\n",
+ obd->obd_minor, obd);
GOTO(out, err=-EBUSY);
}
/* XXX should these be in MDS and LDLM init functions? */
INIT_LIST_HEAD(&export->exp_mds_data.med_open_head);
INIT_LIST_HEAD(&export->exp_ldlm_data.led_held_locks);
- list_add(&(export->exp_chain), &export->exp_obd->obd_exports);
+ list_add(&export->exp_chain, &export->exp_obd->obd_exports);
return export;
}
int rc;
ENTRY;
- if (exp->exp_connection) {
- spin_lock(&exp->exp_connection->c_lock);
- list_del(&exp->exp_chain);
- spin_unlock(&exp->exp_connection->c_lock);
- }
+ //spin_lock(&exp->exp_connection->c_lock);
+ list_del(&exp->exp_chain);
+ //spin_unlock(&exp->exp_connection->c_lock);
/* XXXshaver these bits want to be hung off the export, instead of
* XXXshaver hard-coded here.