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

[Xen-devel] Re: One issue in kill_timer

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Subject: [Xen-devel] Re: One issue in kill_timer
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 4 Jun 2010 07:42:42 +0100
Cc: "Zheng, Shaohui" <shaohui.zheng@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Jun 2010 23:43:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <789F9655DD1B8F43B48D77C5D30659731E84D24F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsDkmHDSVB3NKCMQGKV5VaiJjmRxwAHr/1l
Thread-topic: One issue in kill_timer
User-agent: Microsoft-Entourage/12.24.0.100205
On 04/06/2010 04:02, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> Currently kill_timer assume the timer is either active/inactive. However,
> sometimes caller have called kill_timer already. The latter one may cause
> crash because the timer's list has been delted and cause
> list_del(&timer->inactive) failed.

It's a bug in kill_timer(). I will fix it.

> BTW, I'm curios why TIMER_STATUS_killed > TIMER_STATUS_inactive? Per my
> understanding, the timer status should be invalid->uninitied->inactive->active
> (heap or list), so IMO TIMER_STATUS_killed should be < TIMER_STATUS_inactive.

The ordering doesn't matter. I can switch killed and inactive if it makes
things a bit clearer, however.

 Thanks,
 Keir

> Thanks
> --jyh
> 



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

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