diff options
Diffstat (limited to 'kernel/cgroup/cpuset.c')
-rw-r--r-- | kernel/cgroup/cpuset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index f6501f4f6040..ae643412948a 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c | |||
@@ -176,9 +176,9 @@ typedef enum { | |||
176 | } cpuset_flagbits_t; | 176 | } cpuset_flagbits_t; |
177 | 177 | ||
178 | /* convenient tests for these bits */ | 178 | /* convenient tests for these bits */ |
179 | static inline bool is_cpuset_online(const struct cpuset *cs) | 179 | static inline bool is_cpuset_online(struct cpuset *cs) |
180 | { | 180 | { |
181 | return test_bit(CS_ONLINE, &cs->flags); | 181 | return test_bit(CS_ONLINE, &cs->flags) && !css_is_dying(&cs->css); |
182 | } | 182 | } |
183 | 183 | ||
184 | static inline int is_cpu_exclusive(const struct cpuset *cs) | 184 | static inline int is_cpu_exclusive(const struct cpuset *cs) |