Lines Matching refs:item

91 static void dlm_request_all_locks_worker(struct dlm_work_item *item,
93 static void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data);
157 struct dlm_work_item *item, *next; in dlm_dispatch_work() local
165 list_for_each_entry(item, &tmp_list, list) { in dlm_dispatch_work()
170 list_for_each_entry_safe(item, next, &tmp_list, list) { in dlm_dispatch_work()
171 workfunc = item->func; in dlm_dispatch_work()
172 list_del_init(&item->list); in dlm_dispatch_work()
176 BUG_ON(item->dlm != dlm); in dlm_dispatch_work()
180 workfunc(item, item->data); in dlm_dispatch_work()
183 kfree(item); in dlm_dispatch_work()
836 struct dlm_work_item *item = NULL; in dlm_request_all_locks_handler() local
852 item = kzalloc(sizeof(*item), GFP_NOFS); in dlm_request_all_locks_handler()
853 if (!item) { in dlm_request_all_locks_handler()
861 kfree(item); in dlm_request_all_locks_handler()
868 dlm_init_work_item(dlm, item, dlm_request_all_locks_worker, buf); in dlm_request_all_locks_handler()
869 item->u.ral.reco_master = lr->node_idx; in dlm_request_all_locks_handler()
870 item->u.ral.dead_node = lr->dead_node; in dlm_request_all_locks_handler()
872 list_add_tail(&item->list, &dlm->work_list); in dlm_request_all_locks_handler()
880 static void dlm_request_all_locks_worker(struct dlm_work_item *item, void *data) in dlm_request_all_locks_worker() argument
890 dlm = item->dlm; in dlm_request_all_locks_worker()
891 dead_node = item->u.ral.dead_node; in dlm_request_all_locks_worker()
892 reco_master = item->u.ral.reco_master; in dlm_request_all_locks_worker()
1374 struct dlm_work_item *item = NULL; in dlm_mig_lockres_handler() local
1396 item = kzalloc(sizeof(*item), GFP_NOFS); in dlm_mig_lockres_handler()
1397 if (!buf || !item) in dlm_mig_lockres_handler()
1499 dlm_init_work_item(dlm, item, dlm_mig_lockres_worker, buf); in dlm_mig_lockres_handler()
1500 item->u.ml.lockres = res; /* already have a ref */ in dlm_mig_lockres_handler()
1501 item->u.ml.real_master = real_master; in dlm_mig_lockres_handler()
1502 item->u.ml.extra_ref = extra_refs; in dlm_mig_lockres_handler()
1504 list_add_tail(&item->list, &dlm->work_list); in dlm_mig_lockres_handler()
1516 kfree(item); in dlm_mig_lockres_handler()
1524 static void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data) in dlm_mig_lockres_worker() argument
1533 dlm = item->dlm; in dlm_mig_lockres_worker()
1536 res = item->u.ml.lockres; in dlm_mig_lockres_worker()
1537 real_master = item->u.ml.real_master; in dlm_mig_lockres_worker()
1538 extra_ref = item->u.ml.extra_ref; in dlm_mig_lockres_worker()