Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void put_io_context_active(struct io_context *ioc)

Type:void

Parameter:

TypeParameterName
struct io_context *ioc
175  If Not atomic_dec_and_test( & active_ref) Then
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  Return
185  spin_lock_irqsave_nested( & all the fields below are protected by this lock , flags, 1)
187  If flags & ICQ_EXITED Then Continue
190  Exit an icq. Called with ioc locked for blk-mq, and with both ioc* and queue locked for legacy.
192  spin_unlock_irqrestore( & all the fields below are protected by this lock , 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.
Caller
NameDescribe
exit_io_contextCalled by the exiting task