+ if (rc == 0) {
+ struct obd_export *exp = req->rq_export;
+ struct obd_connect_data *reply;
+ /* Now that connection handling has completed
+ * successfully, atomically update the connect flags
+ * in the shared export data structure.*/
+ reply = req_capsule_server_get(&req->rq_pill,
+ &RMF_CONNECT_DATA);
+ spin_lock(&exp->exp_lock);
+ exp->exp_connect_data = *reply;
+ spin_unlock(&exp->exp_lock);
+ }