Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:We cannot support shared io contexts, as we have no mean to support* two tasks with the same ioc in two different groups without major rework* of the main cic data structures. For now we allow a task to change

Proto:static int blkcg_can_attach(struct cgroup_taskset *tset)

Type:int

Parameter:

TypeParameterName
struct cgroup_taskset *tset
1087  ret = 0
1091  Protects ->fs, ->files, ->mm, ->group_info, ->comm, keyring* subscriptions and synchronises with wait4(). Also used in procfs. Also* pins the final release of task.io_context. Also protects ->cpuset and* ->cgroup.subsys[]. And ->vfork_done.
1092  ioc = io_context
1093  If ioc && atomic_read( & nr_tasks) > 1 Then ret = -EINVAL
1095  task_unlock(task)
1096  If ret Then Break
1099  Return ret