函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-ioc.c Create Date:2022-07-27 18:39:33
Last Modify:2020-03-17 23:16:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:put_io_context_active - put active reference on ioc*@ioc: ioc of interest* Undo get_io_context_active(). If active reference reaches zero after* put, @ioc can never issue further IOs and ioscheds are notified.

函数原型:void put_io_context_active(struct io_context *ioc)

返回类型:void

参数:

类型参数名称
struct io_context *ioc
175  如果非atomic_dec_and_test( & 活跃引用)则
176  put_io_context - put a reference of io_context*@ioc: io_context to put* Decrement reference count of @ioc and release it if the count reaches* zero.
177  返回
185  spin_lock_irqsave_nested( & 自旋锁, flags, 1)
187  如果flags按位与ICQ_EXITED则继续下一循环
190  Exit an icq. Called with ioc locked for blk-mq, and with both ioc* and queue locked for legacy.
192  spin_unlock_irqrestore( & 自旋锁, flags)
194  put_io_context - put a reference of io_context*@ioc: io_context to put* Decrement reference count of @ioc and release it if the count reaches* zero.
调用者
名称描述
exit_io_contextCalled by the exiting task