Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:10:10
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_flush_plug_list

Proto:void blk_mq_flush_plug_list(struct blk_plug *plug, bool from_schedule)

Type:void

Parameter:

TypeParameterName
struct blk_plug *plug
boolfrom_schedule
1689  LIST_HEAD(list)
1690  LIST_HEAD(rq_list)
1693  list_splice_init - join two lists and reinitialise the emptied list.*@list: the new list to add.*@head: the place to add it in the first list.* The list at @list is reinitialised
1695  If rq_count > 2 && multiple_queues Then list_sort - sort a list*@priv: private data, opaque to list_sort(), passed to @cmp*@head: the list to sort*@cmp: the elements comparison function* The comparison funtion @cmp must return > 0 if @a should sort after*@b ("@a > @b" if you want an ascending
1698  rq_count = 0
1700  this_q = NULL
1701  this_hctx = NULL
1702  this_ctx = NULL
1703  depth = 0
1705  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
1706  rq = list_entry_rq(next)
1707  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
1708  BUG_ON(!q)
1709  If mq_hctx != this_hctx || mq_ctx != this_ctx Then
1710  If this_hctx Then
1717  this_q = q
1718  this_ctx = mq_ctx
1719  this_hctx = mq_hctx
1720  depth = 0
1723  depth++
1724  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1731  If this_hctx Then
1732  lock_unplug - release of operations requests in request queue*@q: request queue to unplug*@depth: number of requests just added to the queue*@explicit: whether this was an explicit unplug, or one from schedule()* Unplug request queue @q because device
1733  blk_mq_sched_insert_requests(this_hctx, this_ctx, & rq_list, from_schedule)