]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - kernel/cgroup/cpuset.c
mmap locking API: convert mmap_sem comments
[thirdparty/linux.git] / kernel / cgroup / cpuset.c
index 729d3a5c772e70eaee911b16897085f49cf7db6a..642415b8c3c9e9295170afde97169b019b7479c0 100644 (file)
@@ -1655,7 +1655,7 @@ static void update_tasks_nodemask(struct cpuset *cs)
        guarantee_online_mems(cs, &newmems);
 
        /*
-        * The mpol_rebind_mm() call takes mmap_sem, which we couldn't
+        * The mpol_rebind_mm() call takes mmap_lock, which we couldn't
         * take while holding tasklist_lock.  Forks can happen - the
         * mpol_dup() cpuset_being_rebound check will catch such forks,
         * and rebind their vma mempolicies too.  Because we still hold
@@ -1760,7 +1760,7 @@ static void update_nodemasks_hier(struct cpuset *cs, nodemask_t *new_mems)
  *
  * Call with cpuset_mutex held. May take callback_lock during call.
  * Will take tasklist_lock, scan tasklist for tasks in cpuset cs,
- * lock each such tasks mm->mmap_sem, scan its vma's and rebind
+ * lock each such tasks mm->mmap_lock, scan its vma's and rebind
  * their mempolicies to the cpusets new mems_allowed.
  */
 static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs,