* those stale RPC(with older generation) will not be sent, otherwise it
* will cause update lllog corruption */
__u64 ou_generation;
+
+ /* dedicate update thread */
+ struct task_struct *ou_update_task;
+ struct lu_env ou_env;
};
struct osp_rpc_lock {
/* send update thread */
struct osp_updates *opd_update;
- /* dedicate update thread */
- struct ptlrpc_thread opd_update_thread;
/*
* OST synchronization thread
ret; \
})
-static inline bool osp_send_update_thread_running(struct osp_device *osp)
-{
- return osp->opd_update_thread.t_flags & SVC_RUNNING;
-}
-
-static inline bool osp_send_update_thread_stopped(struct osp_device *osp)
-{
- return osp->opd_update_thread.t_flags & SVC_STOPPED;
-}
-
typedef int (*osp_update_interpreter_t)(const struct lu_env *env,
struct object_update_reply *rep,
struct ptlrpc_request *req,