Function report |
Source Code:block\blk-merge.c |
Create Date:2022-07-28 17:06:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Two cases of handling DISCARD merge:* If max_discard_segments > 1, the driver takes every bio* as a range and send them to controller together. The ranges* needn't to be contiguous.* Otherwise, the bios/requests will be handled as same as
Proto:static inline bool blk_discard_mergable(struct request *req)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct request * | req |
723 | If req_op(req) == REQ_OP_DISCARD && queue_max_discard_segments(q) > 1 Then Return true |
726 | Return false |
Name | Describe |
---|---|
blk_try_req_merge | |
attempt_merge | For non-mq, this has to be called with the request spinlock acquired.* For mq with scheduling, the appropriate queue wide lock should be held. |
blk_try_merge |
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 |