Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 7 of 7) sorted by relevance

/block/
Dblk-lib.c15 struct completion *wait; member
25 complete(bb->wait); in bio_batch_end_io()
43 DECLARE_COMPLETION_ONSTACK(wait); in blkdev_issue_discard()
71 bb.wait = &wait; in blkdev_issue_discard()
125 wait_for_completion_io(&wait); in blkdev_issue_discard()
148 DECLARE_COMPLETION_ONSTACK(wait); in blkdev_issue_write_same()
163 bb.wait = &wait; in blkdev_issue_write_same()
196 wait_for_completion_io(&wait); in blkdev_issue_write_same()
222 DECLARE_COMPLETION_ONSTACK(wait); in __blkdev_issue_zeroout()
226 bb.wait = &wait; in __blkdev_issue_zeroout()
[all …]
Dblk-exec.c102 DECLARE_COMPLETION_ONSTACK(wait); in blk_execute_rq()
113 rq->end_io_data = &wait; in blk_execute_rq()
119 while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); in blk_execute_rq()
121 wait_for_completion_io(&wait); in blk_execute_rq()
Dblk-mq-tag.c87 if (waitqueue_active(&bs->wait)) in blk_mq_tag_wakeup_all()
88 wake_up(&bs->wait); in blk_mq_tag_wakeup_all()
95 if (waitqueue_active(&bt->bs[0].wait)) in blk_mq_tag_wakeup_all()
96 wake_up(&bt->bs[0].wait); in blk_mq_tag_wakeup_all()
264 DEFINE_WAIT(wait); in bt_get()
276 prepare_to_wait(&bs->wait, &wait, TASK_UNINTERRUPTIBLE); in bt_get()
313 finish_wait(&bs->wait, &wait); in bt_get()
317 finish_wait(&bs->wait, &wait); in bt_get()
366 if (waitqueue_active(&bs->wait)) { in bt_wake_ptr()
401 wake_up(&bs->wait); in bt_clear_tag()
[all …]
Dblk-throttle.c680 unsigned long *wait) in tg_with_in_iops_limit() argument
711 if (wait) in tg_with_in_iops_limit()
712 *wait = 0; in tg_with_in_iops_limit()
724 if (wait) in tg_with_in_iops_limit()
725 *wait = jiffy_wait; in tg_with_in_iops_limit()
730 unsigned long *wait) in tg_with_in_bps_limit() argument
749 if (wait) in tg_with_in_bps_limit()
750 *wait = 0; in tg_with_in_bps_limit()
766 if (wait) in tg_with_in_bps_limit()
767 *wait = jiffy_wait; in tg_with_in_bps_limit()
[all …]
Dblk-core.c464 for (i = 0; i < ARRAY_SIZE(rl->wait); i++) in __blk_drain_queue()
465 wake_up_all(&rl->wait[i]); in __blk_drain_queue()
531 wake_up_all(&rl->wait[BLK_RW_SYNC]); in blk_set_queue_dying()
532 wake_up_all(&rl->wait[BLK_RW_ASYNC]); in blk_set_queue_dying()
628 init_waitqueue_head(&rl->wait[BLK_RW_SYNC]); in blk_init_rl()
629 init_waitqueue_head(&rl->wait[BLK_RW_ASYNC]); in blk_init_rl()
947 if (waitqueue_active(&rl->wait[sync])) in __freed_request()
948 wake_up(&rl->wait[sync]); in __freed_request()
1000 wake_up(&rl->wait[BLK_RW_SYNC]); in blk_update_nr_requests()
1007 wake_up(&rl->wait[BLK_RW_ASYNC]); in blk_update_nr_requests()
[all …]
Dblk-mq-tag.h13 wait_queue_head_t wait; member
Dbsg.c850 static unsigned int bsg_poll(struct file *file, poll_table *wait) in bsg_poll() argument
855 poll_wait(file, &bd->wq_done, wait); in bsg_poll()
856 poll_wait(file, &bd->wq_free, wait); in bsg_poll()