函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:block\blk-mq.c Create Date:2022-07-27 18:43:43
首页 Copyright©Brick

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
/*
 * Guarantee no request is in use, so we can change any data structure of
 * the queue afterward.
 */
void blk_freeze_queue(struct request_queue *q)
{
    /*
     * In the !blk_mq case we are only calling this to kill the
     * q_usage_counter, otherwise this increases the freeze depth
     * and waits for it to return to zero.  For this reason there is
     * no blk_unfreeze_queue(), and blk_freeze_queue() is not
     * exported to drivers as the only user for unfreeze is blk_mq.
     */
    blk_freeze_queue_start(q);
    blk_mq_freeze_queue_wait(q);
}