Lines Matching refs:plug
695 struct blk_plug *plug; in blk_attempt_plug_merge() local
699 plug = blk_mq_plug(q, bio); in blk_attempt_plug_merge()
700 if (!plug) in blk_attempt_plug_merge()
703 plug_list = &plug->mq_list; in blk_attempt_plug_merge()
1696 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
1703 if (tsk->plug) in blk_start_plug()
1706 INIT_LIST_HEAD(&plug->mq_list); in blk_start_plug()
1707 INIT_LIST_HEAD(&plug->cb_list); in blk_start_plug()
1708 plug->rq_count = 0; in blk_start_plug()
1709 plug->multiple_queues = false; in blk_start_plug()
1715 tsk->plug = plug; in blk_start_plug()
1719 static void flush_plug_callbacks(struct blk_plug *plug, bool from_schedule) in flush_plug_callbacks() argument
1723 while (!list_empty(&plug->cb_list)) { in flush_plug_callbacks()
1724 list_splice_init(&plug->cb_list, &callbacks); in flush_plug_callbacks()
1739 struct blk_plug *plug = current->plug; in blk_check_plugged() local
1742 if (!plug) in blk_check_plugged()
1745 list_for_each_entry(cb, &plug->cb_list, list) in blk_check_plugged()
1755 list_add(&cb->list, &plug->cb_list); in blk_check_plugged()
1761 void blk_flush_plug_list(struct blk_plug *plug, bool from_schedule) in blk_flush_plug_list() argument
1763 flush_plug_callbacks(plug, from_schedule); in blk_flush_plug_list()
1765 if (!list_empty(&plug->mq_list)) in blk_flush_plug_list()
1766 blk_mq_flush_plug_list(plug, from_schedule); in blk_flush_plug_list()
1779 void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument
1781 if (plug != current->plug) in blk_finish_plug()
1783 blk_flush_plug_list(plug, false); in blk_finish_plug()
1785 current->plug = NULL; in blk_finish_plug()