RDMA/odp: use mmu_notifier_get/put for 'struct ib_ucontext_per_mm'
[linux-2.6-microblaze.git] / drivers / infiniband / core / uverbs_cmd.c
index 8f4fd4f..7c10dfe 100644 (file)
@@ -252,9 +252,6 @@ static int ib_uverbs_get_context(struct uverbs_attr_bundle *attrs)
        ucontext->closing = false;
        ucontext->cleanup_retryable = false;
 
-       mutex_init(&ucontext->per_mm_list_lock);
-       INIT_LIST_HEAD(&ucontext->per_mm_list);
-
        ret = get_unused_fd_flags(O_CLOEXEC);
        if (ret < 0)
                goto err_free;