From: Andrea Arcangeli Subject: Re: [PATCH] fix pgd_lock deadlock Date: Tue, 22 Feb 2011 15:34:21 +0100 Message-ID: <20110222143421.GX13092@random.random> References: <20110215195450.GO5935@random.random> <20110216183304.GD5935@random.random> <20110217101941.GH2380@redhat.com> <20110221143023.GF13092@random.random> <20110221145350.GH25382@redhat.com> <4D6378760200007800033104@vpn.id2.novell.com> <20110222134956.GU13092@random.random> <4D63D4CD020000780003320A@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4D63D4CD020000780003320A@vpn.id2.novell.com> Sender: linux-kernel-owner@vger.kernel.org To: Jan Beulich Cc: Ian Campbell , Andi Kleen , Hugh Dickins , Jeremy Fitzhardinge , the arch/x86 maintainers , Thomas Gleixner , Andrew Morton , "Xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk , Johannes Weiner , Larry Woodman , Rik van Riel , Linux Kernel Mailing List , "H. Peter Anvin" List-Id: xen-devel@lists.xenproject.org On Tue, Feb 22, 2011 at 02:22:53PM +0000, Jan Beulich wrote: > If everyone's okay with putting a couple of "if (xen_pv_domain())" > into mm/fault.c - sure. I would have thought that this wouldn't be > liked, hence the suggestion to make this depend on seeing the > backlink be non-NULL. I prefer the if (xen_pv_domain) so it also gets optimized away at build time when CONFIG_XEN=n. I think it's also more self explanatory to read.