diff options
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index cc1b01cf2035..3fe661fe96d1 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -110,10 +110,14 @@ static inline bool put_mems_allowed(unsigned int seq) | |||
110 | 110 | ||
111 | static inline void set_mems_allowed(nodemask_t nodemask) | 111 | static inline void set_mems_allowed(nodemask_t nodemask) |
112 | { | 112 | { |
113 | unsigned long flags; | ||
114 | |||
113 | task_lock(current); | 115 | task_lock(current); |
116 | local_irq_save(flags); | ||
114 | write_seqcount_begin(¤t->mems_allowed_seq); | 117 | write_seqcount_begin(¤t->mems_allowed_seq); |
115 | current->mems_allowed = nodemask; | 118 | current->mems_allowed = nodemask; |
116 | write_seqcount_end(¤t->mems_allowed_seq); | 119 | write_seqcount_end(¤t->mems_allowed_seq); |
120 | local_irq_restore(flags); | ||
117 | task_unlock(current); | 121 | task_unlock(current); |
118 | } | 122 | } |
119 | 123 | ||