Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blk-cgroup.h Create Date:2022-07-28 05:57:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lkg_tryget_closest - try and get a blkg ref on the closet blkg*@blkg: blkg to get* This needs to be called rcu protected. As the failure mode here is to walk* up the blkg tree, this ensure that the blkg->parent pointers are always* valid

Proto:static inline struct blkcg_gq *blkg_tryget_closest(struct blkcg_gq *blkg)

Type:struct blkcg_gq

Parameter:

TypeParameterName
struct blkcg_gq *blkg
503  struct blkcg_gq * ret_blkg = NULL
505  WARN_ON_ONCE(!rcu_read_lock_held())
507  When blkg cycle
509  ret_blkg = blkg
510  Break
512  blkg = all non-root blkcg_gq's are guaranteed to have access to parent
515  Return ret_blkg
Caller
NameDescribe
__bio_associate_blkg__bio_associate_blkg - associate a bio with the a blkg*@bio: target bio*@blkg: the blkg to associate* This tries to associate @bio with the specified @blkg. Association failure* is handled by walking up the blkg tree. Therefore, the blkg associated can