ia64/xen-unstable

changeset 2341:d21069f49572

bitkeeper revision 1.1159.1.102 (412b9fccqeyjh2TbuuMsIA125um-qA)

Properly daemonise the blkif backend thread.
author kaf24@scramble.cl.cam.ac.uk
date Tue Aug 24 20:06:36 2004 +0000 (2004-08-24)
parents 34e52c54c854
children 30bc4c5fe838 36ed4e3fa897
files linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c
line diff
     1.1 --- a/linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c	Tue Aug 24 15:12:02 2004 +0000
     1.2 +++ b/linux-2.6.7-xen-sparse/drivers/xen/blkback/blkback.c	Tue Aug 24 20:06:36 2004 +0000
     1.3 @@ -146,6 +146,12 @@ static int blkio_schedule(void *arg)
     1.4      blkif_t          *blkif;
     1.5      struct list_head *ent;
     1.6  
     1.7 +    daemonize(
     1.8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
     1.9 +        "xenblkd"
    1.10 +#endif
    1.11 +        );
    1.12 +
    1.13      for ( ; ; )
    1.14      {
    1.15          /* Wait for work to do. */