WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] blkback stuck in infinite loop in xen_blkbk_discard()

To: Jan Beulich <JBeulich@xxxxxxxx>
Subject: Re: [Xen-devel] blkback stuck in infinite loop in xen_blkbk_discard()
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Thu, 29 Sep 2011 09:40:19 -0700
Cc: Dong Yang Li <lidongyang@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Thu, 29 Sep 2011 09:41:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E845CB4020000780005871C@xxxxxxxxxxxxxxxxxxxx>
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: <4E839451.40901@xxxxxxxx> <4E845CB4020000780005871C@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2
On 09/29/2011 02:55 AM, Jan Beulich wrote:
>>>> On 28.09.11 at 23:40, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
>> I just "xl destroy"d a domain, and now my dom0 kernel is sitting there
>> infinitely spewing:
>>
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>> vbd vbd-83-51712: 5 reading type
>>
>> which seems to be coming from the error case in
>> drivers/block/xen-blkback/xenbus.c:xen_blkbk_discard().
>>
>> I don't know what the backtrace is.  The system seems overall fine,
>> despite the console spew, though I have a pile of dying domains sitting
>> in odd states rather than being cleaned up.
> I wonder how the function gets called during destroy in the first place,
> and how that would prevent destroying a domain (unless there's a
> feedback loop due to the use of xenbus_dev_fatal() here, causing
> some xenstore entry to get written over and over again, triggering
> the respective watch that blkback has active).
>
> But irrespective of this I would think the function should bail without
> doing anything if blkif->blk_backend_type was already set (or
> couldn't get set). But that would then also indicate a more general
> problem in connect(), as that function shouldn't do anything either
> when a domain gets destroyed.

Well, it could have got into that state before I destroyed the domain -
it was a test kernel that crashed very early (before setting up its own
frontend) after booting from pvgrub, so perhaps there was some race in
that handoff.

    J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>