Function report |
Source Code:block\bfq-iosched.c |
Create Date:2022-07-28 17:54:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Lifted from AS - choose which of rq1 and rq2 that is best served now.* We choose the request that is closer to the head right now. Distance* behind the head is penalized and only allowed to a certain extent.
Proto:static struct request *bfq_choose_req(struct bfq_data *bfqd, struct request *rq1, struct request *rq2, sector_t last)
Type:struct request
Parameter:
Type | Parameter | Name |
---|---|---|
struct bfq_data * | bfqd | |
struct request * | rq1 | |
struct request * | rq2 | |
sector_t | last |
448 | wrap = 0 |
455 | If rq_is_sync(rq1) && Not rq_is_sync(rq2) Then Return rq1 |
457 | Else if rq_is_sync(rq2) && Not rq_is_sync(rq1) Then Return rq2 |
459 | If op and common flags & REQ_META && Not ( op and common flags & REQ_META) Then Return rq1 |
461 | Else if op and common flags & REQ_META && Not ( op and common flags & REQ_META) Then Return rq2 |
470 | back_max = maximum allowed backward seek * 2 |
481 | Else wrap |= quest 1 wraps |
488 | Else wrap |= quest 2 wraps |
498 | Case wrap == 0 |
506 | Else Return rq2 |
509 | Case wrap == quest 2 wraps |
510 | Return rq1 |
511 | Case wrap == quest 1 wraps |
512 | Return rq2 |
513 | Case wrap == quest 1 wraps | quest 2 wraps |
514 | Default |
Name | Describe |
---|---|
bfq_find_next_rq | |
bfq_add_request | |
bfq_request_merged |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |