|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmallo
To: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Subject: |
[Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync |
From: |
Andrea Arcangeli <aarcange@xxxxxxxxxx> |
Date: |
Tue, 8 Feb 2011 00:20:45 +0100 |
Cc: |
"Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Larry Woodman <lwoodman@xxxxxxxxxx> |
Delivery-date: |
Mon, 07 Feb 2011 15:22:11 -0800 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<4D4C6F45.6010204@xxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<4CB76E8B.2090309@xxxxxxxx> <4CC0AB73.8060609@xxxxxxxx> <20110203024838.GI5843@xxxxxxxxxxxxx> <4D4B1392.5090603@xxxxxxxx> <20110204012109.GP5843@xxxxxxxxxxxxx> <4D4C6F45.6010204@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Fri, Feb 04, 2011 at 01:27:33PM -0800, Jeremy Fitzhardinge wrote:
> No, I don't think there's any xen-specific code which calls mmdrop (at
> all, let alone in interrupt context). Erm, but I'm not sure where it
> does. I had a thinko that "schedule" would be one of those places, but
> calling that from interrupt context would cause much bigger problems :/
> > static void pgd_dtor(pgd_t *pgd)
I checked again and I don't see exactly where mmdrop or __mmdrop are
called from irq context.
> No. I don't think I wrote that comment. It possibly just some ancient
> lore that could have been correct at one point, or perhaps it never true.
I agree with that. But it'd be nice of more people could look into
that so we at least can remove the misleading comment.
Where else can the pgd_lock be taken from irq context? Can we fix the
deadlock with NR_CPUS < 4 with my patch? (with the ,flags removed from below?)
>
> >>> @@ -247,7 +248,7 @@ void vmalloc_sync_all(void)
> >>> if (!ret)
> >>> break;
> >>> }
> >>> - spin_unlock_irqrestore(&pgd_lock, flags);
> >>> + spin_unlock(&pgd_lock, flags);
> >> Urp. Did this compile?
> > Yes it builds
>
> (spin_unlock() shouldn't take a "flags" arg.)
>
>
> > I'm not reposting a version that builds for 32bit x86 too until we
> > figure out the mmdrop thing...
>
> Stick it in next and look for explosion reports?
I intended to correct that of course, I just meant it is no problem
for 64bit builds and that's why I didn't notice the build failure
before posting the patch. Clearly 32bit build would have failed ;).
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync, Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync, Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH] x86: hold mm->page_table_lock while doing vmalloc_sync,
Andrea Arcangeli <=
- [Xen-devel] [PATCH] fix pgd_lock deadlock, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Thomas Gleixner
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Larry Woodman
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Thomas Gleixner
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Thomas Gleixner
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Thomas Gleixner
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Andrea Arcangeli
- [Xen-devel] Re: [PATCH] fix pgd_lock deadlock, Peter Zijlstra
|
|
|
|
|