RETURN(-ENOMEM);
}
memcpy(uuid->uuid, lwpname, strlen(lwpname));
- *exp = cfs_hash_lookup(lwp->obd_uuid_hash, uuid);
+ *exp = obd_uuid_lookup(lwp, uuid);
OBD_FREE_PTR(uuid);
}
CDEBUG(D_MOUNT, "lri reference count %u, repeat: %d\n",
atomic_read(&lri->lri_ref), repeat);
repeat++;
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(cfs_time_seconds(1));
+ schedule_timeout_interruptible(cfs_time_seconds(1));
}
lustre_put_lwp_item(lri);
}
if ((rc == -ESHUTDOWN || rc == -EIO) && ++tried < 5) {
/* The connection with MGS is not established.
* Try again after 2 seconds. Interruptable. */
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(cfs_time_seconds(2));
- set_current_state(TASK_RUNNING);
+ schedule_timeout_interruptible(
+ cfs_time_seconds(2));
if (!signal_pending(current))
goto again;
}