Home
last modified time | relevance | path

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

12

/linux-6.6.21/rust/kernel/sync/
Dcondvar.rs76 pub(crate) wait_list: Opaque<bindings::wait_queue_head>, field
100 wait_list <- Opaque::ffi_init(|slot| unsafe { in new()
114 bindings::prepare_to_wait_exclusive(self.wait_list.get(), wait.get(), wait_state as _) in wait_internal()
121 unsafe { bindings::finish_wait(self.wait_list.get(), wait.get()) }; in wait_internal()
151 self.wait_list.get(), in notify()
/linux-6.6.21/include/linux/
Dsemaphore.h18 struct list_head wait_list; member
25 .wait_list = LIST_HEAD_INIT((name).wait_list), \
Drwsem.h60 struct list_head wait_list; member
97 .wait_list = LIST_HEAD_INIT((name).wait_list), \
122 return !list_empty(&sem->wait_list); in rwsem_is_contended()
Dmutex.h70 struct list_head wait_list; member
112 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
/linux-6.6.21/kernel/locking/
Dww_mutex.h13 w = list_first_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_first()
14 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_first()
24 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_next()
34 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_prev()
45 w = list_last_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_last()
46 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_last()
55 struct list_head *p = &lock->wait_list; in __ww_waiter_add()
Dmutex-debug.c39 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); in debug_mutex_wake_waiter()
75 DEBUG_LOCKS_WARN_ON(!lock->wait_list.prev && !lock->wait_list.next); in debug_mutex_unlock()
Drwsem.c74 list_empty(&(sem)->wait_list) ? "" : "not ")) \
325 INIT_LIST_HEAD(&sem->wait_list); in __init_rwsem()
346 list_first_entry(&sem->wait_list, struct rwsem_waiter, list)
373 list_add_tail(&waiter->list, &sem->wait_list); in rwsem_add_waiter()
390 if (likely(!list_empty(&sem->wait_list))) in rwsem_del_waiter()
510 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in rwsem_mark_wake()
528 if (list_empty(&sem->wait_list)) { in rwsem_mark_wake()
643 if (list_is_singular(&sem->wait_list)) in rwsem_try_write_lock()
1025 if (!list_empty(&sem->wait_list)) in rwsem_down_read_slowpath()
1041 if (list_empty(&sem->wait_list)) { in rwsem_down_read_slowpath()
[all …]
Dsemaphore.c188 if (likely(list_empty(&sem->wait_list))) in up()
214 list_add_tail(&waiter.list, &sem->wait_list); in ___down_common()
274 struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, in __up()
Dmutex.c50 INIT_LIST_HEAD(&lock->wait_list); in __mutex_init()
197 return list_first_entry(&lock->wait_list, struct mutex_waiter, list) == waiter; in __mutex_waiter_is_first()
219 if (likely(list_empty(&lock->wait_list))) in __mutex_remove_waiter()
637 __mutex_add_waiter(lock, &waiter, &lock->wait_list); in __mutex_lock_common()
934 if (!list_empty(&lock->wait_list)) { in __mutex_unlock_slowpath()
937 list_first_entry(&lock->wait_list, in __mutex_unlock_slowpath()
/linux-6.6.21/drivers/gpu/drm/omapdrm/
Domap_irq.c27 list_for_each_entry(wait, &priv->wait_list, node) in omap_irq_update()
53 list_add(&wait->node, &priv->wait_list); in omap_irq_wait_init()
240 list_for_each_entry_safe(wait, n, &priv->wait_list, node) { in omap_irq_handler()
265 INIT_LIST_HEAD(&priv->wait_list); in omap_drm_irq_install()
Domap_drv.h95 struct list_head wait_list; /* list of omap_irq_wait */ member
/linux-6.6.21/drivers/md/bcache/
Dclosure.c60 void __closure_wake_up(struct closure_waitlist *wait_list) in __closure_wake_up() argument
66 list = llist_del_all(&wait_list->list); in __closure_wake_up()
/linux-6.6.21/fs/xfs/
Dxfs_buf.c2155 struct list_head *wait_list) in xfs_buf_delwri_submit_buffers() argument
2165 if (!wait_list) { in xfs_buf_delwri_submit_buffers()
2199 if (wait_list) { in xfs_buf_delwri_submit_buffers()
2201 list_move_tail(&bp->b_list, wait_list); in xfs_buf_delwri_submit_buffers()
2248 LIST_HEAD (wait_list); in xfs_buf_delwri_submit()
2252 xfs_buf_delwri_submit_buffers(buffer_list, &wait_list); in xfs_buf_delwri_submit()
2255 while (!list_empty(&wait_list)) { in xfs_buf_delwri_submit()
2256 bp = list_first_entry(&wait_list, struct xfs_buf, b_list); in xfs_buf_delwri_submit()
/linux-6.6.21/drivers/nvme/target/
Drdma.c76 struct list_head wait_list; member
529 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_process_wr_wait_list()
530 list_del(&rsp->wait_list); in nvmet_rdma_process_wr_wait_list()
537 list_add(&rsp->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_process_wr_wait_list()
998 list_add_tail(&cmd->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_handle_command()
1054 list_add_tail(&rsp->wait_list, &queue->rsp_wait_list); in nvmet_rdma_recv_done()
1629 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_queue_established()
1630 list_del(&cmd->wait_list); in nvmet_rdma_queue_established()
1656 wait_list); in __nvmet_rdma_queue_disconnect()
1657 list_del(&rsp->wait_list); in __nvmet_rdma_queue_disconnect()
/linux-6.6.21/drivers/infiniband/ulp/rtrs/
Drtrs-srv.h58 struct list_head wait_list; member
Drtrs-srv.c514 list_add_tail(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_srv_resp_rdma()
1189 struct rtrs_srv_op, wait_list); in rtrs_rdma_process_wr_wait_list()
1190 list_del(&id->wait_list); in rtrs_rdma_process_wr_wait_list()
1197 list_add(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_rdma_process_wr_wait_list()
/linux-6.6.21/drivers/infiniband/core/
Dmad_priv.h98 struct list_head wait_list; member
Dmad.c393 INIT_LIST_HEAD(&mad_agent_priv->wait_list); in ib_register_mad_agent()
1740 list_for_each_entry(wr, &mad_agent_priv->wait_list, agent_list) { in ib_find_send_mad()
2153 if (list_empty(&mad_agent_priv->wait_list)) { in adjust_timeout()
2156 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, in adjust_timeout()
2186 list_for_each_prev(list_item, &mad_agent_priv->wait_list) { in wait_for_response()
2195 list_item = &mad_agent_priv->wait_list; in wait_for_response()
2201 if (mad_agent_priv->wait_list.next == &mad_send_wr->agent_list) in wait_for_response()
2418 list_splice_init(&mad_agent_priv->wait_list, &cancel_list); in cancel_mads()
2441 list_for_each_entry(mad_send_wr, &mad_agent_priv->wait_list, in find_send_wr()
2629 while (!list_empty(&mad_agent_priv->wait_list)) { in timeout_sends()
[all …]
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_srpt.h185 struct list_head wait_list; member
Dib_srpt.c1651 if (!list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1653 list_del_init(&recv_ioctx->wait_list); in srpt_handle_new_iu()
1688 if (list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1690 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); in srpt_handle_new_iu()
1732 wait_list) { in srpt_process_wait_list()
2301 INIT_LIST_HEAD(&ch->ioctx_recv_ring[i]->wait_list); in srpt_cm_req_recv()
3101 INIT_LIST_HEAD(&sdev->ioctx_ring[i]->wait_list); in srpt_alloc_srq()
3351 WARN_ON_ONCE(!list_empty(&recv_ioctx->wait_list)); in srpt_release_cmd()
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_common.c195 INIT_LIST_HEAD(&vf->rcv_act.wait_list); in qlcnic_sriov_init()
196 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); in qlcnic_sriov_init()
247 while (!list_empty(&t_list->wait_list)) { in qlcnic_sriov_cleanup_list()
248 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
1065 trans = list_first_entry(&vf->rcv_act.wait_list, in qlcnic_sriov_process_bc_cmd()
1125 list_add_tail(&trans->list, &t_list->wait_list); in __qlcnic_sriov_add_act_list()
1157 list_for_each(node, &vf->rcv_pend.wait_list) { in qlcnic_sriov_handle_pending_trans()
1258 list_add_tail(&trans->list, &vf->rcv_pend.wait_list); in qlcnic_sriov_handle_bc_cmd()
Dqlcnic_sriov.h61 struct list_head wait_list; member
/linux-6.6.21/fs/f2fs/
Dsegment.c1206 struct list_head *wait_list, in __submit_zone_reset_cmd() argument
1226 list_move_tail(&dc->list, wait_list); in __submit_zone_reset_cmd()
1250 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __submit_discard_cmd() local
1251 &(dcc->fstrim_list) : &(dcc->wait_list); in __submit_discard_cmd()
1271 wait_list, issued); in __submit_discard_cmd()
1335 list_move_tail(&dc->list, wait_list); in __submit_discard_cmd()
1734 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __wait_discard_cmd_range() local
1735 &(dcc->fstrim_list) : &(dcc->wait_list); in __wait_discard_cmd_range()
1743 list_for_each_entry_safe(iter, tmp, wait_list, list) { in __wait_discard_cmd_range()
1810 &dcc->wait_list, NULL); in f2fs_wait_discard_bio()
[all …]
/linux-6.6.21/drivers/md/
Ddm-integrity.c226 struct list_head wait_list; member
1226 list_for_each_entry(range, &ic->wait_list, wait_entry) { in add_new_range()
1255 while (unlikely(!list_empty(&ic->wait_list))) { in remove_range_unlocked()
1257 list_first_entry(&ic->wait_list, struct dm_integrity_range, wait_entry); in remove_range_unlocked()
1264 list_add(&last_range->wait_entry, &ic->wait_list); in remove_range_unlocked()
1284 list_add_tail(&new_range->wait_entry, &ic->wait_list); in wait_and_add_new_range()
4131 INIT_LIST_HEAD(&ic->wait_list); in dm_integrity_ctr()
4675 BUG_ON(!list_empty(&ic->wait_list)); in dm_integrity_dtr()
/linux-6.6.21/drivers/acpi/
Dosl.c1234 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()

12