Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-cgroup.c Create Date:2022-07-28 17:40:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lkcg_policy_unregister - unregister a blkcg policy*@pol: blkcg policy to unregister* Undo blkcg_policy_register(@pol). Might sleep.

Proto:void blkcg_policy_unregister(struct blkcg_policy *pol)

Type:void

Parameter:

TypeParameterName
struct blkcg_policy *pol
1458  mutex_lock( & lkcg_pol_mutex protects blkcg_policy[] and policy [de]activation.* blkcg_pol_register_mutex nests outside of it and synchronizes entire* policy [un]register operations including cgroup file additions /* removals)
1460  If WARN_ON(blkcg_policy[plid] != pol) Then Go to out_unlock
1464  If cgroup files for the policy Then group_rm_cftypes - remove an array of cftypes from a subsystem*@cfts: zero-length name terminated array of cftypes* Unregister @cfts. Files described by @cfts are removed from all* existing cgroups and all future cgroups won't have them either. This
1466  If legacy_cftypes Then group_rm_cftypes - remove an array of cftypes from a subsystem*@cfts: zero-length name terminated array of cftypes* Unregister @cfts. Files described by @cfts are removed from all* existing cgroups and all future cgroups won't have them either. This
1470  mutex_lock( & blkcg_pol_mutex)
1472  If cpd_free_fn Then
1474  If cpd[plid] Then
1475  cpd_free_fn(cpd[plid])
1476  cpd[plid] = NULL
1480  =
1482  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1483  out_unlock :
1484  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
iolatency_exit
ioc_exit