Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:08:21
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_freeze_queue_wait

Proto:void blk_mq_freeze_queue_wait(struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
146  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(mq_freeze_wq, percpu_ref_is_zero - test whether a percpu refcount reached zero*@ref: percpu_ref to test* Returns %true if @ref reached zero.* This function is safe to call as long as @ref is between init and exit.)
Caller
NameDescribe
blk_freeze_queueGuarantee no request is in use, so we can change any data structure of* the queue afterward.