struct osp_rpc_lock opd_rpc_lock;
struct obd_device *opd_obd;
struct obd_export *opd_exp;
- struct obd_uuid opd_cluuid;
struct obd_connect_data *opd_connect_data;
int opd_connects;
/* connection status. */
static inline struct osp_thread_info *osp_env_info(const struct lu_env *env)
{
- struct osp_thread_info *info;
-
- info = lu_context_key_get(&env->le_ctx, &osp_thread_key);
- if (info == NULL) {
- lu_env_refill((struct lu_env *)env);
- info = lu_context_key_get(&env->le_ctx, &osp_thread_key);
- }
- LASSERT(info);
- return info;
+ return lu_env_info(env, &osp_thread_key);
}
struct osp_txn_info {
*/
if (unlikely(lck->rpcl_fakes)) {
mutex_unlock(&lck->rpcl_mutex);
- schedule_timeout(cfs_time_seconds(1) / 4);
+ schedule_timeout_uninterruptible(cfs_time_seconds(1) / 4);
goto again;
}
struct thandle *th);
/* lwp_dev.c */
-extern struct obd_ops lwp_obd_device_ops;
+extern const struct obd_ops lwp_obd_device_ops;
extern struct lu_device_type lwp_device_type;
static inline struct lu_device *osp2top(const struct osp_device *osp)