mm: remove the now-unnecessary mmget_still_valid() hack
[sfrench/cifs-2.6.git] / drivers / infiniband / core / uverbs_main.c
index 37794d88b1f3bbc6f7e2d623d2d663b7bef5abae..a4ba0b87d6de3492e842c833e6cb2ba5a3b473ff 100644 (file)
@@ -845,8 +845,6 @@ void uverbs_user_mmap_disassociate(struct ib_uverbs_file *ufile)
                 * will only be one mm, so no big deal.
                 */
                mmap_read_lock(mm);
-               if (!mmget_still_valid(mm))
-                       goto skip_mm;
                mutex_lock(&ufile->umap_lock);
                list_for_each_entry_safe (priv, next_priv, &ufile->umaps,
                                          list) {
@@ -865,7 +863,6 @@ void uverbs_user_mmap_disassociate(struct ib_uverbs_file *ufile)
                        }
                }
                mutex_unlock(&ufile->umap_lock);
-       skip_mm:
                mmap_read_unlock(mm);
                mmput(mm);
        }