Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio-integrity.c Create Date:2022-07-28 18:02:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__bio_integrity_endio - Integrity I/O completion function*@bio: Protected bio* Description: Completion for integrity I/O* Normally I/O completion is done in interrupt context. However,* verifying I/O integrity is a time-consuming task which must be run

Proto:bool __bio_integrity_endio(struct bio *bio)

Type:bool

Parameter:

TypeParameterName
struct bio *bio
350  bi = blk_get_integrity(bi_disk)
351  bip = bio_integrity(bio)
353  If bio_op(bio) == REQ_OP_READ && Not bi_status && control flags & BIP_BLOCK_INTEGRITY && verify_fn Then
355  INIT_WORK( & I/O completion , _integrity_verify_fn - Integrity I/O completion worker*@work: Work struct stored in bio to be verified* Description: This workqueue function is called to complete a READ* request. The function verifies the transferred integrity metadata)
356  queue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
357  Return false
360  _integrity_free - Free bio integrity payload*@bio: bio containing bip to be freed* Description: Used to free the integrity portion of a bio. Usually* called from bio_free().
361  Return true