Function report |
Source Code:block\blk-flush.c |
Create Date:2022-07-28 17:02:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lk_insert_flush - insert a new PREFLUSH/FUA request*@rq: request to insert* To be called from __elv_add_request() for %ELEVATOR_INSERT_FLUSH insertions.* or __blk_mq_run_hw_queue() to dispatch request.*@rq is being submitted
Proto:void blk_insert_flush(struct request *rq)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct request * | rq |
377 | policy = blk_flush_policy(fflags, rq) |
378 | fq = blk_get_flush_queue(q, mq_ctx) |
384 | op and common flags &= ~REQ_PREFLUSH |
385 | If Not (fflags & 1UL << device supports FUA writes ) Then op and common flags &= ~REQ_FUA |
393 | op and common flags |= REQ_SYNC |
401 | If Not policy Then |
402 | blk_mq_end_request(rq, 0) |
403 | Return |
413 | If policy & REQ_FSEQ_DATA && Not (policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH)) Then |
415 | blk_mq_request_bypass_insert(rq, false) |
416 | Return |
425 | rq_flags |= quest for flush sequence |
430 | spin_lock_irq( & mq_flush_lock) |
432 | spin_unlock_irq( & mq_flush_lock) |
Name | Describe |
---|---|
blk_mq_make_request | |
blk_mq_sched_insert_request |
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 |