summaryrefslogtreecommitdiff
path: root/include/linux/kthread-cgroup.h
blob: 53d34bca9d7249be700abcaa43c67019d463f36d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_KTHREAD_CGROUP_H
#define _LINUX_KTHREAD_CGROUP_H
#include <linux/kthread.h>
#include <linux/cgroup.h>

#ifdef CONFIG_BLK_CGROUP
void kthread_associate_blkcg(struct cgroup_subsys_state *css);
struct cgroup_subsys_state *kthread_blkcg(void);
#else
static inline void kthread_associate_blkcg(struct cgroup_subsys_state *css) { }
static inline struct cgroup_subsys_state *kthread_blkcg(void)
{
	return NULL;
}
#endif
#endif