Lines Matching refs:plug

1894 	struct blk_plug *plug;  in blk_attempt_plug_merge()  local
1898 plug = current->plug; in blk_attempt_plug_merge()
1899 if (!plug) in blk_attempt_plug_merge()
1904 plug_list = &plug->mq_list; in blk_attempt_plug_merge()
1906 plug_list = &plug->list; in blk_attempt_plug_merge()
1948 struct blk_plug *plug; in blk_plug_queued_count() local
1953 plug = current->plug; in blk_plug_queued_count()
1954 if (!plug) in blk_plug_queued_count()
1958 plug_list = &plug->mq_list; in blk_plug_queued_count()
1960 plug_list = &plug->list; in blk_plug_queued_count()
1991 struct blk_plug *plug; in blk_queue_bio() local
2084 plug = current->plug; in blk_queue_bio()
2085 if (plug) { in blk_queue_bio()
2093 if (!request_count || list_empty(&plug->list)) in blk_queue_bio()
2096 struct request *last = list_entry_rq(plug->list.prev); in blk_queue_bio()
2099 blk_flush_plug_list(plug, false); in blk_queue_bio()
2103 list_add_tail(&req->queuelist, &plug->list); in blk_queue_bio()
2575 if (current->plug) in blk_poll()
2576 blk_flush_plug_list(current->plug, false); in blk_poll()
3592 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
3599 if (tsk->plug) in blk_start_plug()
3602 INIT_LIST_HEAD(&plug->list); in blk_start_plug()
3603 INIT_LIST_HEAD(&plug->mq_list); in blk_start_plug()
3604 INIT_LIST_HEAD(&plug->cb_list); in blk_start_plug()
3609 tsk->plug = plug; in blk_start_plug()
3643 static void flush_plug_callbacks(struct blk_plug *plug, bool from_schedule) in flush_plug_callbacks() argument
3647 while (!list_empty(&plug->cb_list)) { in flush_plug_callbacks()
3648 list_splice_init(&plug->cb_list, &callbacks); in flush_plug_callbacks()
3663 struct blk_plug *plug = current->plug; in blk_check_plugged() local
3666 if (!plug) in blk_check_plugged()
3669 list_for_each_entry(cb, &plug->cb_list, list) in blk_check_plugged()
3679 list_add(&cb->list, &plug->cb_list); in blk_check_plugged()
3685 void blk_flush_plug_list(struct blk_plug *plug, bool from_schedule) in blk_flush_plug_list() argument
3692 flush_plug_callbacks(plug, from_schedule); in blk_flush_plug_list()
3694 if (!list_empty(&plug->mq_list)) in blk_flush_plug_list()
3695 blk_mq_flush_plug_list(plug, from_schedule); in blk_flush_plug_list()
3697 if (list_empty(&plug->list)) in blk_flush_plug_list()
3700 list_splice_init(&plug->list, &list); in blk_flush_plug_list()
3748 void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument
3750 if (plug != current->plug) in blk_finish_plug()
3752 blk_flush_plug_list(plug, false); in blk_finish_plug()
3754 current->plug = NULL; in blk_finish_plug()