[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v2 02/15] mm/mmu_notifier: add an interval tree notifier
- To: "Kuehling, Felix" <Felix.Kuehling@xxxxxxx>
- From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
- Date: Tue, 29 Oct 2019 22:56:29 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cSNk3sWFkaId19ydTN+WcDhTOdN4QOImhr1C7nNhym0=; b=IdcRUADUboh5u2fUtpr244mzgXWLtWzp6/BAetimJzQT2Y8My/0i8ZQ0Zqwi/3Xs+NvUO6W9adno6wwxvQ4g03HTvxxygX1wTpAEa5+lh6xlSdKh9n8YFLv7YyisS0sGwVT3MFd2cZuRDn5z38zhJTuO27fItOjwtMy5SKd6WVddWvQJmJIGi/3iOjkD54Cv/cNj6iOP75gX3I2w44T4qC0U5ug+38HM2kSQznSl4Ez/hycBzsfNE8jkuFzTwLD3N/E2jvgBfgffHHTKwRJyXIJjGX1VCWjyaElbxN267qNHAq88N3MqwWGU11NDQMpkfXNH/ki8RBWOcOWjTWU+aA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e8qZ4XTJrmCImvrLUmff0YOAi3J2zR8Dpk8650Yiun0PVgXB/1s0HmpWYM36jgnvn3uT/pr9q9IsqNy9MMOPo4I1C3BDjDeZ6fwwkpWoSTlA6zOsUGm0F1EjuhFJECBjmMIXJo7nxjQ1e9IcPBn6dlX7rRFuN4FRrZIMSymd7HCoQXuuTgOvKBhjgLXld9I04Fzui2wx0Y9U0z5GsJyyISmlptuF+9z+V0shqoa0zDXrseU5R4rbq4CpPE2D1/7Q5xyHmhcHIRGtA9Uw6XLg5DNr6klLEQrY4jVcTkPOgHpihwCHouOEDlyuZKCgvaD8jZvMHOU7nvrGM60fwgdXzg==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=jgg@xxxxxxxxxxxx;
- Cc: "nouveau@xxxxxxxxxxxxxxxxxxxxx" <nouveau@xxxxxxxxxxxxxxxxxxxxx>, "dri-devel@xxxxxxxxxxxxxxxxxxxxx" <dri-devel@xxxxxxxxxxxxxxxxxxxxx>, Michal Hocko <mhocko@xxxxxxxxxx>, "linux-mm@xxxxxxxxx" <linux-mm@xxxxxxxxx>, Andrea Arcangeli <aarcange@xxxxxxxxxx>, "Zhou, David\(ChunMing\)" <David1.Zhou@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, "linux-rdma@xxxxxxxxxxxxxxx" <linux-rdma@xxxxxxxxxxxxxxx>, "amd-gfx@xxxxxxxxxxxxxxxxxxxxx" <amd-gfx@xxxxxxxxxxxxxxxxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, Ben Skeggs <bskeggs@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Ralph Campbell <rcampbell@xxxxxxxxxx>, John Hubbard <jhubbard@xxxxxxxxxx>, Jerome Glisse <jglisse@xxxxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Petr Cvek <petrcvekcz@xxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>, Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx>, "Deucher, Alexander" <Alexander.Deucher@xxxxxxx>, "Koenig, Christian" <Christian.Koenig@xxxxxxx>
- Delivery-date: Tue, 29 Oct 2019 22:56:36 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVjcvJYOye0EiwZkisYK74G5bmhqdyLieAgAAObYA=
- Thread-topic: [PATCH v2 02/15] mm/mmu_notifier: add an interval tree notifier
On Tue, Oct 29, 2019 at 10:04:45PM +0000, Kuehling, Felix wrote:
> > * because mm->mm_users > 0 during mmu_notifier_register and exit_mmap
> > @@ -52,17 +286,24 @@ struct mmu_notifier_mm {
> > * can't go away from under us as exit_mmap holds an mm_count pin
> > * itself.
> > */
> > -void __mmu_notifier_release(struct mm_struct *mm)
> > +static void mn_hlist_release(struct mmu_notifier_mm *mmn_mm,
> > + struct mm_struct *mm)
> > {
> > struct mmu_notifier *mn;
> > int id;
> >
> > + if (mmn_mm->has_interval)
> > + mn_itree_release(mmn_mm, mm);
> > +
> > + if (hlist_empty(&mmn_mm->list))
> > + return;
>
> This seems to duplicate the conditions in __mmu_notifier_release. See my
> comments below, I think one of them is wrong. I suspect this one,
> because __mmu_notifier_release follows the same pattern as the other
> notifiers.
Yep, this is a rebasing error from a earlier version, the above two
lines should be deleted.
I think it is harmless so it should not impact any testing.
Thanks,
Jason
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|