lkml.org 
[lkml]   [2015]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 6/8] IB/mlx5/hmm: add mlx5 HMM device initialization and callback v3.
> On 17/07/2015 22:01, Jérôme Glisse wrote:
> > @@ -151,10 +151,11 @@ int ib_umem_odp_get(struct ib_ucontext *context,
> > struct ib_umem *umem)
> > context->ib_mirror = ib_mirror_ref(ib_mirror);
> > }
> > mutex_unlock(&ib_device->hmm_mutex);
> > - umem->odp_data.ib_mirror = ib_mirror;
> > + umem->odp_data->ib_mirror = ib_mirror;
> >
> > down_write(&ib_mirror->umem_rwsem);
> > - rbt_ib_umem_insert(&umem->odp_data->interval_tree, &mirror->umem_tree);
> > + rbt_ib_umem_insert(&umem->odp_data->interval_tree,
> > + &ib_mirror->umem_tree);
> > up_write(&ib_mirror->umem_rwsem);
> >
> > mmput(mm);
> > @@ -163,7 +164,7 @@ int ib_umem_odp_get(struct ib_ucontext *context, struct
> > ib_umem *umem)
> >
> > void ib_umem_odp_release(struct ib_umem *umem)
> > {
> > - struct ib_mirror *ib_mirror = umem->odp_data;
> > + struct ib_mirror *ib_mirror = umem->odp_data->ib_mirror;
> >
> > /*
> > * Ensure that no more pages are mapped in the umem.
>
> It doesn't look like this code would have compiled before this patch,
> and as far as I can see the previous patch removed the #error line.
> Could you make sure all of the patches build correctly? You could use
> tools/testing/ktest for instance.
>

This is a rebase error. But the #error is there for a purpose the HMM
would not work mid way so if anyone if bisecting up through that i would
rather error out at compilation.

Jérôme


\
 
 \ /
  Last update: 2015-07-21 17:41    [W:0.128 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site