Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3716096imm; Mon, 30 Jul 2018 02:03:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfnjMJtW7k0mzvdnf1QJIGWw7p0L7fhMmMt2s2JpZIB4/cf+AVphY4uY7RU1LvB4Wmb+xjI X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr15729085plb.38.1532941409281; Mon, 30 Jul 2018 02:03:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532941409; cv=none; d=google.com; s=arc-20160816; b=BwZaxCFWr7aIlRMO54/nqxlrRnRUkCQj9PYNqrVkrlhfV42Wy8NvjZAh4CvZIGH9nR HW7y7H42yiyEDb/bFHYSifL3Z/TGF4f5LUrKDkRGPO4lKZ1n1Msr6WG/G3d864rMwSll FPWfBq5mFEZqK0UOvorZmgyr5SJyD1OQ7/WccnlSp8qkt/1AMVkdPSXoXmFJED6cfamH BpBnTyE2Kx+sHHL8eunK0tFLTjy54RcHaDR95VKjWOVju37l2T73QG7tg/b2HPooU4Zh nIoRRZFRdOsWYgjQbd26yKs5/gzBUIIWUFnteC3GNuWC+XYlKuLWjWqsRg5YWE7dNTvH ExMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:subject:cc:to :from:date:dkim-signature:arc-authentication-results; bh=3d5clc0+c/gclEKk83Kh3ZWQ/fjfkpGgrQ/sQ+6h2kc=; b=06fIkeZOu1e5rUZWOp2d4maRExItokJwul6/+XKQGNewj18Vg+Aaj5nZqiX2hF2J+7 4VlBRfcENO9NFTZcLlytde5xjZ2vrEVCyLJXB941TwVgvOapbZLi8tfEqs3nCf844E9O s4KcBo54jW7Z3/u/igBfUr7ubJHpBExC7jJq24WXZ6LyGDTr/rgfDpLVcIy3c3zjgEAc amv1GsIdGVyflyFBYdTvnS9epjJLfOcqaXK4RVFmGZ7kgLt/yQDEsgEtUBFM7iVR9d37 YK0CLATmxqv/4DIs6SkamBVXFSFlKXhc3gSq+hpyV+ErQRmlcCUPCtYKtk+xZhtmKqAA 41mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=ThOzpurm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69-v6si9859364plb.297.2018.07.30.02.03.15; Mon, 30 Jul 2018 02:03:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=ThOzpurm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726639AbeG3KgP (ORCPT + 99 others); Mon, 30 Jul 2018 06:36:15 -0400 Received: from ozlabs.org ([203.11.71.1]:47365 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726505AbeG3KgP (ORCPT ); Mon, 30 Jul 2018 06:36:15 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41fD8z35Xsz9ryl; Mon, 30 Jul 2018 19:02:11 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1532941331; bh=ChEokd+d79J7ZlmISjyYJpf9LwVCaNngVY4aL8LXnqg=; h=Date:From:To:Cc:Subject:From; b=ThOzpurm/CXMYYuIqbjJTSDL+rraJK5x/HnWsJJsHKJXap5MkapGzgWhtuRgsPzxn 56QmNVJtlWBZTz7KVY+49ykX7hFJn2SXTiPsNR18e+20/LlnljY512LmXgoC8BpWtP mN0/e5VfXrevtPzPvG3L6fHDTmq5eAP1UoKBpi0w+YK/PCl6iJPO3V2nX6lYuQIWUv AkWJtTfw/Zsiaeu7XDIKTKRrnPrX6IZNw6PwaeJwHHnolnsJkPtSaSEGcx6S+aZnMo FJSD4g/oNxQbcsYn+7kNe9jtNTCYXJVeL8tcx09x1r22ZSBEgmi7KU4PDDFV77Dc91 BfE1F3ZYVkAZA== Date: Mon, 30 Jul 2018 19:02:10 +1000 From: Stephen Rothwell To: Andrew Morton , Juergen Gross , Konrad Rzeszutek Wilk , Stefano Stabellini , Boris Ostrovsky , Xen Devel Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Oleksandr Andrushchenko , Michal Hocko Subject: linux-next: manual merge of the akpm-current tree with the xen-tip tree Message-ID: <20180730190210.48a75b72@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/RQ/f9UhlBN2KABzauLfOSxw"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/RQ/f9UhlBN2KABzauLfOSxw Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: drivers/xen/gntdev.c between commit: 1d3145675538 ("xen/gntdev: Make private routines/structures accessible") from the xen-tip tree and commit: aaefcabe9c25 ("mm, oom: distinguish blockable mode for mmu notifiers") from the akpm-current tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc drivers/xen/gntdev.c index c866a62f766d,55b4f0e3f4d6..000000000000 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@@ -479,7 -441,20 +479,20 @@@ static const struct vm_operations_struc =20 /* ------------------------------------------------------------------ */ =20 -static bool in_range(struct grant_map *map, ++static bool in_range(struct gntdev_grant_map *map, + unsigned long start, unsigned long end) + { + if (!map->vma) + return false; + if (map->vma->vm_start >=3D end) + return false; + if (map->vma->vm_end <=3D start) + return false; +=20 + return true; + } +=20 -static void unmap_if_in_range(struct grant_map *map, +static void unmap_if_in_range(struct gntdev_grant_map *map, unsigned long start, unsigned long end) { unsigned long mstart, mend; @@@ -503,15 -472,26 +510,26 @@@ WARN_ON(err); } =20 - static void mn_invl_range_start(struct mmu_notifier *mn, + static int mn_invl_range_start(struct mmu_notifier *mn, struct mm_struct *mm, - unsigned long start, unsigned long end) + unsigned long start, unsigned long end, + bool blockable) { struct gntdev_priv *priv =3D container_of(mn, struct gntdev_priv, mn); - struct grant_map *map; + struct gntdev_grant_map *map; + int ret =3D 0; +=20 + /* TODO do we really need a mutex here? */ + if (blockable) + mutex_lock(&priv->lock); + else if (!mutex_trylock(&priv->lock)) + return -EAGAIN; =20 - mutex_lock(&priv->lock); list_for_each_entry(map, &priv->maps, next) { + if (in_range(map, start, end)) { + ret =3D -EAGAIN; + goto out_unlock; + } unmap_if_in_range(map, start, end); } list_for_each_entry(map, &priv->freeable_maps, next) { --Sig_/RQ/f9UhlBN2KABzauLfOSxw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlte1BIACgkQAVBC80lX 0GyG1wf+KGs6g2d6zFRQetpC8V37YhGvenZX4vHrVb7nXp9wmUVt3fRrOGvAJFGx r9aZVBdZeBDIt1Hj5XClOm4xB3MkDUAzEAC0qp8zQxh+OopZwALw/rT+laHdTlLY 9UhtdxjieNyHVr56160LUtInU6dh13GS8nvowWMz0QRahdHnObEu/rffWgbOluKv wPmS8tGiY/blbx5oNqMYZPUQ7I80iTrml7OrDLRQq9bWRlAaDWOe7fH6e6gbfuVF DP89e2ojb8N9kl2UR77cJiy6XjzNvGqrbyOYiolmhqy4D2FZMiAoLSPBDwEC9OiQ JFolvw3vycLsazHFkuuTJmlD2CdGug== =BIWe -----END PGP SIGNATURE----- --Sig_/RQ/f9UhlBN2KABzauLfOSxw--