Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933094AbbGUPPG (ORCPT ); Tue, 21 Jul 2015 11:15:06 -0400 Received: from mx5-phx2.redhat.com ([209.132.183.37]:47030 "EHLO mx5-phx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932076AbbGUPPE convert rfc822-to-8bit (ORCPT ); Tue, 21 Jul 2015 11:15:04 -0400 Date: Tue, 21 Jul 2015 11:14:59 -0400 (EDT) From: Jerome Glisse To: Haggai Eran Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Christophe Harle , Duncan Poole , Sherry Cheung , Subhash Gutti , John Hubbard , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , Shachar Raindel , Liran Liss Message-ID: <1450090324.1616771.1437491699456.JavaMail.zimbra@redhat.com> In-Reply-To: <55AE2431.20105@mellanox.com> References: <1437159665-6612-1-git-send-email-jglisse@redhat.com> <1437159665-6612-7-git-send-email-jglisse@redhat.com> <55AE2431.20105@mellanox.com> Subject: Re: [PATCH 6/8] IB/mlx5/hmm: add mlx5 HMM device initialization and callback v3. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.10.51.11] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF39 (Linux)/8.0.6_GA_5922) Thread-Topic: IB/mlx5/hmm: add mlx5 HMM device initialization and callback v3. Thread-Index: Tllrisy8KvLffKYuZzYObwLttFKiAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1663 Lines: 43 > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/