Re: Linux guest domain with two vnets bound to the same vswitchexperiences hung in bootup (sun_netraT5220)

From: David Miller
Date: Fri Oct 09 2009 - 18:09:24 EST


From: hyl <heyongli@xxxxxxxxx>
Date: Thu, 24 Sep 2009 10:03:25 +0800

> Subject: [PATCH] Sun ldom vnet driver dead lock
>
> if 2 vnet attach to same vswitch, ldom will report
> 2 same irq then lead to dead lock on the lp->lock
> or the vio->lock
>
> static irqreturn_t ldc_rx(int irq, void *dev_id){
> ...
> out:
> spin_unlock_irqrestore(&lp->lock, flags);
> << here run with out any lock
> send_events(lp, event_mask);
> >> vnet evetn process will dead lock on
> >> lp->lock or the vio->lock
>
> Signed-off-by: Yongli He <heyongli@xxxxxxxxx>

Thank you for this bug report and patch, I am looking at
it now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/