Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct request *rq
375  q = q
376  fflags = * various queue flags, see QUEUE_* below
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
406  BUG_ON(bio != biotail)
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
423  memset( & flush, 0, size of flush )
424  Initialization list head
425  rq_flags |= quest for flush sequence
426  saved_end_io = * completion callback.
428  * completion callback. = mq_flush_data_end_io
430  spin_lock_irq( & mq_flush_lock)
431  lk_flush_complete_seq - complete flush sequence*@rq: PREFLUSH/FUA request being sequenced*@fq: flush queue*@seq: sequences to complete (mask of %REQ_FSEQ_*, can be zero)*@error: whether an error occurred*@rq just completed @seq part of its flush sequence,
432  spin_unlock_irq( & mq_flush_lock)
Caller
NameDescribe
blk_mq_make_request
blk_mq_sched_insert_request