Lines Matching refs:plug
1615 struct blk_plug *plug; in blk_attempt_plug_merge() local
1620 plug = current->plug; in blk_attempt_plug_merge()
1621 if (!plug) in blk_attempt_plug_merge()
1626 plug_list = &plug->mq_list; in blk_attempt_plug_merge()
1628 plug_list = &plug->list; in blk_attempt_plug_merge()
1664 struct blk_plug *plug; in blk_plug_queued_count() local
1669 plug = current->plug; in blk_plug_queued_count()
1670 if (!plug) in blk_plug_queued_count()
1674 plug_list = &plug->mq_list; in blk_plug_queued_count()
1676 plug_list = &plug->list; in blk_plug_queued_count()
1703 struct blk_plug *plug; in blk_queue_bio() local
1790 plug = current->plug; in blk_queue_bio()
1791 if (plug) { in blk_queue_bio()
1800 blk_flush_plug_list(plug, false); in blk_queue_bio()
1804 list_add_tail(&req->queuelist, &plug->list); in blk_queue_bio()
3155 void blk_start_plug(struct blk_plug *plug) in blk_start_plug() argument
3162 if (tsk->plug) in blk_start_plug()
3165 INIT_LIST_HEAD(&plug->list); in blk_start_plug()
3166 INIT_LIST_HEAD(&plug->mq_list); in blk_start_plug()
3167 INIT_LIST_HEAD(&plug->cb_list); in blk_start_plug()
3172 tsk->plug = plug; in blk_start_plug()
3204 static void flush_plug_callbacks(struct blk_plug *plug, bool from_schedule) in flush_plug_callbacks() argument
3208 while (!list_empty(&plug->cb_list)) { in flush_plug_callbacks()
3209 list_splice_init(&plug->cb_list, &callbacks); in flush_plug_callbacks()
3224 struct blk_plug *plug = current->plug; in blk_check_plugged() local
3227 if (!plug) in blk_check_plugged()
3230 list_for_each_entry(cb, &plug->cb_list, list) in blk_check_plugged()
3240 list_add(&cb->list, &plug->cb_list); in blk_check_plugged()
3246 void blk_flush_plug_list(struct blk_plug *plug, bool from_schedule) in blk_flush_plug_list() argument
3254 flush_plug_callbacks(plug, from_schedule); in blk_flush_plug_list()
3256 if (!list_empty(&plug->mq_list)) in blk_flush_plug_list()
3257 blk_mq_flush_plug_list(plug, from_schedule); in blk_flush_plug_list()
3259 if (list_empty(&plug->list)) in blk_flush_plug_list()
3262 list_splice_init(&plug->list, &list); in blk_flush_plug_list()
3317 void blk_finish_plug(struct blk_plug *plug) in blk_finish_plug() argument
3319 if (plug != current->plug) in blk_finish_plug()
3321 blk_flush_plug_list(plug, false); in blk_finish_plug()
3323 current->plug = NULL; in blk_finish_plug()
3329 struct blk_plug *plug; in blk_poll() local
3336 plug = current->plug; in blk_poll()
3337 if (plug) in blk_poll()
3338 blk_flush_plug_list(plug, false); in blk_poll()