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] [PATCH] name blkback kernel thread

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] name blkback kernel thread
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Tue, 24 Aug 2004 14:14:13 -0400 (EDT)
Delivery-date: Tue, 24 Aug 2004 19:30:39 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Currently the blkback kernel thread doesn't set its own name,
nor does it do some of the other initialisation that it should
do.

This trivial patch makes it call daemonize, like other similar
kernel threads.  Now it shows up in top with a proper name.
The fact that it blocks dangerous signals should help, too ;)

--- linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c.orig   2004-08-24 
13:58:51.000000000 -0400
+++ linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c        2004-08-24 
14:00:06.000000000 -0400
@@ -145,6 +145,7 @@ static int blkio_schedule(void *arg)
 
     blkif_t          *blkif;
     struct list_head *ent;
+    daemonize("xenblkd");
 
     for ( ; ; )
     {



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] name blkback kernel thread, Rik van Riel <=