Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-iosched.c Create Date:2022-07-28 17:55:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bfq_remove_request

Proto:static void bfq_remove_request(struct request_queue *q, struct request *rq)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
struct request *rq
2155  bfqq = RQ_BFQQ(rq)
2156  bfqd = parent bfq_data
2157  sync = rq_is_sync(rq)
2159  If fifo isn't expired, next request to serve == rq Then
2160  fifo isn't expired, next request to serve = bfq_find_next_rq(bfqd, bfqq, rq)
2161  q_updated_next_req - update the queue after a new next_rq selection
2164  If prev != queuelist Then list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
2166  umber of sync and async requests queued [sync]--
2167  number of queued requests --
2168  elv_rb_del( & sorted list of pending requests , rq)
2170  elv_rqhash_del(q, rq)
2171  If last_merge == rq Then last_merge = NULL
2174  If RB_EMPTY_ROOT( & sorted list of pending requests ) Then
2175  fifo isn't expired, next request to serve = NULL
2202  Else
2204  If Value for the false possibility is greater at compile time(! true if the device is non rotational and performs queueing ) Then The following function is not marked as __cold because it is* actually cold, but for the same performance goal described in the* comments on the likely() at the beginning of* bfq_setup_cooperator()
2208  If op and common flags & REQ_META Then umber of pending metadata requests --
Caller
NameDescribe
bfq_dispatch_removeRemove request from internal lists.
bfq_finish_requeue_requestHandle either a requeue or a finish for rq. The things to do are* the same in both cases: all references to rq are to be dropped. In* particular, rq is considered completed from the point of view of* the scheduler.