Home
last modified time | relevance | path

Searched refs:work_list (Results 1 – 25 of 26) sorted by relevance

12

/drivers/block/drbd/
Ddrbd_worker.c2069 static bool dequeue_work_batch(struct drbd_work_queue *queue, struct list_head *work_list) in dequeue_work_batch() argument
2072 list_splice_tail_init(&queue->q, work_list); in dequeue_work_batch()
2074 return !list_empty(work_list); in dequeue_work_batch()
2077 static void wait_for_work(struct drbd_connection *connection, struct list_head *work_list) in wait_for_work() argument
2083 dequeue_work_batch(&connection->sender_work, work_list); in wait_for_work()
2084 if (!list_empty(work_list)) in wait_for_work()
2110 list_splice_tail_init(&connection->sender_work.q, work_list); in wait_for_work()
2112 if (!list_empty(work_list) || signal_pending(current)) { in wait_for_work()
2167 LIST_HEAD(work_list); in drbd_worker()
2173 if (list_empty(&work_list)) { in drbd_worker()
[all …]
Ddrbd_receiver.c422 LIST_HEAD(work_list); in drbd_free_peer_reqs()
428 list_splice_init(list, &work_list); in drbd_free_peer_reqs()
431 list_for_each_entry_safe(peer_req, t, &work_list, w.list) { in drbd_free_peer_reqs()
443 LIST_HEAD(work_list); in drbd_finish_peer_reqs()
450 list_splice_init(&device->done_ee, &work_list); in drbd_finish_peer_reqs()
460 list_for_each_entry_safe(peer_req, t, &work_list, w.list) { in drbd_finish_peer_reqs()
/drivers/infiniband/core/
Diwcm.c214 BUG_ON(!list_empty(&cm_id_priv->work_list)); in iwcm_deref_id()
261 INIT_LIST_HEAD(&cm_id_priv->work_list); in iw_create_cm_id()
1024 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler()
1026 work = list_entry(cm_id_priv->work_list.next, in cm_work_handler()
1029 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler()
1096 if (list_empty(&cm_id_priv->work_list)) { in cm_event_handler()
1097 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_event_handler()
1100 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_event_handler()
Diwcm.h53 struct list_head work_list; member
Dcm.c303 struct list_head work_list; member
882 INIT_LIST_HEAD(&cm_id_priv->work_list); in ib_create_cm_id()
899 if (list_empty(&cm_id_priv->work_list)) in cm_dequeue_work()
902 work = list_entry(cm_id_priv->work_list.next, struct cm_work, list); in cm_dequeue_work()
2373 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rep_handler()
2406 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_establish_handler()
2446 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rtu_handler()
2681 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_dreq_handler()
2720 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_drep_handler()
2898 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rej_handler()
[all …]
/drivers/dma/
Dpl330.c422 struct list_head work_list; member
2035 list_for_each_entry(desc, &pch->work_list, node) { in fill_queue()
2067 list_for_each_entry_safe(desc, _dt, &pch->work_list, node) in pl330_tasklet()
2077 if (list_empty(&pch->work_list)) { in pl330_tasklet()
2100 list_move_tail(&desc->node, &pch->work_list); in pl330_tasklet()
2297 list_for_each_entry(desc, &pch->work_list , node) { in pl330_terminate_all()
2303 list_splice_tail_init(&pch->work_list, &pl330->desc_pool); in pl330_terminate_all()
2356 list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); in pl330_free_chan_resources()
2418 list_for_each_entry(desc, &pch->work_list, node) { in pl330_tx_status()
2468 if (list_empty(&pch->work_list)) { in pl330_issue_pending()
[all …]
/drivers/scsi/bnx2i/
Dbnx2i_init.c444 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in bnx2i_cpu_offline()
496 INIT_LIST_HEAD(&p->work_list); in bnx2i_mod_init()
Dbnx2i_hwi.c1855 LIST_HEAD(work_list); in bnx2i_percpu_io_thread()
1861 while (!list_empty(&p->work_list)) { in bnx2i_percpu_io_thread()
1862 list_splice_init(&p->work_list, &work_list); in bnx2i_percpu_io_thread()
1865 list_for_each_entry_safe(work, tmp, &work_list, list) { in bnx2i_percpu_io_thread()
1931 list_add_tail(&bnx2i_work->list, &p->work_list); in bnx2i_queue_scsi_cmd_resp()
Dbnx2i.h779 struct list_head work_list; member
Dbnx2i_iscsi.c1495 &p->work_list, list) { in bnx2i_conn_destroy()
/drivers/scsi/qedi/
Dqedi_main.c1171 list_add_tail(&qedi_cmd->cqe_work.list, &p->work_list); in qedi_queue_cqe()
1186 list_add_tail(&qedi_work->list, &p->work_list); in qedi_queue_cqe()
1862 LIST_HEAD(work_list); in qedi_percpu_io_thread()
1868 while (!list_empty(&p->work_list)) { in qedi_percpu_io_thread()
1869 list_splice_init(&p->work_list, &work_list); in qedi_percpu_io_thread()
1872 list_for_each_entry_safe(work, tmp, &work_list, list) { in qedi_percpu_io_thread()
1917 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in qedi_cpu_offline()
2726 INIT_LIST_HEAD(&p->work_list); in qedi_init()
Dqedi.h370 struct list_head work_list; member
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c650 LIST_HEAD(work_list); in bnx2fc_percpu_io_thread()
657 while (!list_empty(&p->work_list)) { in bnx2fc_percpu_io_thread()
658 list_splice_init(&p->work_list, &work_list); in bnx2fc_percpu_io_thread()
661 list_for_each_entry_safe(work, tmp, &work_list, list) { in bnx2fc_percpu_io_thread()
2656 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in bnx2fc_cpu_offline()
2736 INIT_LIST_HEAD(&p->work_list); in bnx2fc_mod_init()
Dbnx2fc.h174 struct list_head work_list; member
Dbnx2fc_hwi.c1015 list_add_tail(&work->list, &fps->work_list); in bnx2fc_pending_work()
/drivers/vhost/
Dvhost.h165 struct llist_head work_list; member
Dvhost.c266 llist_add(&work->node, &dev->work_list); in vhost_work_queue()
275 return !llist_empty(&dev->work_list); in vhost_has_work()
351 node = llist_del_all(&dev->work_list); in vhost_worker()
476 init_llist_head(&dev->work_list); in vhost_dev_init()
686 WARN_ON(!llist_empty(&dev->work_list)); in vhost_dev_cleanup()
/drivers/scsi/qla4xxx/
Dql4_def.h801 struct list_head work_list; member
Dql4_os.c4555 if (!list_empty(&ha->work_list)) in qla4xxx_timer()
5189 list_add_tail(&e->list, &ha->work_list); in qla4xxx_post_work()
5240 list_splice_init(&ha->work_list, &work); in qla4xxx_do_work()
8684 INIT_LIST_HEAD(&ha->work_list); in qla4xxx_probe_adapter()
/drivers/scsi/lpfc/
Dlpfc.h902 struct list_head work_list; member
Dlpfc_hbadisc.c186 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_dev_loss_tmo_callbk()
526 while (!list_empty(&phba->work_list)) { in lpfc_work_list_done()
527 list_remove_head((&phba->work_list), evtp, typeof(*evtp), in lpfc_work_list_done()
798 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_workq_post_event()
Dlpfc_scsi.c3561 list_add_tail(&fast_path_evt->work_evt.evt_listp, &phba->work_list); in lpfc_send_scsi_error_event()
3933 &phba->work_list); in lpfc_scsi_cmd_iocb_cmpl()
Dlpfc_els.c3436 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_els_retry_delay()
/drivers/scsi/qla2xxx/
Dqla_os.c2738 while (!list_empty(&vha->work_list) && i > 0) { in qla2x00_iocb_work_fn()
4806 INIT_LIST_HEAD(&vha->work_list); in qla2x00_create_host()
4885 list_add_tail(&e->list, &vha->work_list); in qla2x00_post_work()
5217 list_splice_init(&vha->work_list, &work); in qla2x00_do_work()
5317 list_splice(&work, &vha->work_list); in qla2x00_do_work()
6654 if (!list_empty(&vha->work_list)) { in qla2x00_timer()
Dqla_def.h4331 struct list_head work_list; member

12