Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blkg_destroy

Proto:static void blkg_destroy(struct blkcg_gq *blkg)

Type:void

Parameter:

TypeParameterName
struct blkcg_gq *blkg
398  blkcg = blkcg
401  lockdep_assert_held( & queue_lock)
402  lockdep_assert_held( & lock)
405  WARN_ON_ONCE(list_empty - tests whether a list is empty*@head: the list to test.)
406  WARN_ON_ONCE(hlist_unhashed( & blkcg_node))
408  When i < Maximum number of blkcg policies allowed to be registered concurrently.* Defined here to simplify include dependency. cycle
409  pol = blkcg_policy[i]
411  If pd[i] && pd_offline_fn Then pd_offline_fn(pd[i])
415  is this blkg online? protected by both blkcg and q locks = false
417  adix_tree_delete - delete an entry from a radix tree*@root: radix tree root*@index: index key* Remove the entry at @index from the radix tree rooted at @root.* Return: The deleted entry, or %NULL if it was not present.
418  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
419  hlist_del_init_rcu - deletes entry from hash list with re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on the node return true after this. It is* useful for RCU based read lockfree traversal if the writer side
426  If cu_access_pointer() - fetch RCU pointer with no dereferencing*@p: The pointer to read* Return the value of the specified RCU-protected pointer, but omit the* lockdep checks for being in an RCU read-side critical section(blkg_hint) == blkg Then cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(blkg_hint, NULL)
433  percpu_ref_kill - drop the initial ref*@ref: percpu_ref to kill* Must be used to drop the initial ref on a percpu refcount; must be called* precisely once before shutdown.* Switches @ref into atomic mode before gathering up the percpu counters
Caller
NameDescribe
blkg_destroy_alllkg_destroy_all - destroy all blkgs associated with a request_queue*@q: request_queue of interest* Destroy all blkgs associated with @q.
blkcg_destroy_blkgslkcg_destroy_blkgs - responsible for shooting down blkgs*@blkcg: blkcg of interest* blkgs should be removed while holding both q and blkcg locks