Lines Matching refs:ls

59 	struct dlm_ls *ls = lkb->lkb_resource->res_ls;  in dlm_enqueue_lkb_callback()  local
70 log_debug(ls, "skip %x bast mode %d for cast mode %d", in dlm_enqueue_lkb_callback()
88 log_debug(ls, "skip %x add bast mode %d for bast mode %d", in dlm_enqueue_lkb_callback()
140 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_add_cb() local
154 spin_lock(&ls->ls_cb_lock); in dlm_add_cb()
155 if (test_bit(LSFL_CB_DELAY, &ls->ls_flags)) { in dlm_add_cb()
156 list_add(&lkb->lkb_cb_list, &ls->ls_cb_delay); in dlm_add_cb()
158 queue_work(ls->ls_callback_wq, &lkb->lkb_cb_work); in dlm_add_cb()
160 spin_unlock(&ls->ls_cb_lock); in dlm_add_cb()
177 struct dlm_ls *ls = lkb->lkb_resource->res_ls; in dlm_callback_work() local
195 trace_dlm_bast(ls, lkb, cb->mode); in dlm_callback_work()
202 trace_dlm_ast(ls, lkb); in dlm_callback_work()
224 int dlm_callback_start(struct dlm_ls *ls) in dlm_callback_start() argument
226 ls->ls_callback_wq = alloc_workqueue("dlm_callback", in dlm_callback_start()
228 if (!ls->ls_callback_wq) { in dlm_callback_start()
235 void dlm_callback_stop(struct dlm_ls *ls) in dlm_callback_stop() argument
237 if (ls->ls_callback_wq) in dlm_callback_stop()
238 destroy_workqueue(ls->ls_callback_wq); in dlm_callback_stop()
241 void dlm_callback_suspend(struct dlm_ls *ls) in dlm_callback_suspend() argument
243 if (ls->ls_callback_wq) { in dlm_callback_suspend()
244 spin_lock(&ls->ls_cb_lock); in dlm_callback_suspend()
245 set_bit(LSFL_CB_DELAY, &ls->ls_flags); in dlm_callback_suspend()
246 spin_unlock(&ls->ls_cb_lock); in dlm_callback_suspend()
248 flush_workqueue(ls->ls_callback_wq); in dlm_callback_suspend()
254 void dlm_callback_resume(struct dlm_ls *ls) in dlm_callback_resume() argument
260 if (!ls->ls_callback_wq) in dlm_callback_resume()
264 spin_lock(&ls->ls_cb_lock); in dlm_callback_resume()
265 list_for_each_entry_safe(lkb, safe, &ls->ls_cb_delay, lkb_cb_list) { in dlm_callback_resume()
267 queue_work(ls->ls_callback_wq, &lkb->lkb_cb_work); in dlm_callback_resume()
272 empty = list_empty(&ls->ls_cb_delay); in dlm_callback_resume()
274 clear_bit(LSFL_CB_DELAY, &ls->ls_flags); in dlm_callback_resume()
275 spin_unlock(&ls->ls_cb_lock); in dlm_callback_resume()
285 log_rinfo(ls, "%s %d", __func__, sum); in dlm_callback_resume()