lkml.org 
[lkml]   [2004]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectProperly stop kernel threads on aic7xxx
    Hi!

    This is totally untested patch that should make aic7xxx one step
    closer to working with software suspend... Plus it kills ugly #if in
    the process.
    Pavel

    --- tmp/linux/drivers/scsi/aic7xxx/aic79xx_osm.c 2004-03-11 18:11:12.000000000 +0100
    +++ linux/drivers/scsi/aic7xxx/aic79xx_osm.c 2004-04-01 19:01:29.000000000 +0200
    @@ -2581,17 +2581,8 @@
    * Complete thread creation.
    */
    lock_kernel();
    -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,60)
    - /*
    - * Don't care about any signals.
    - */
    - siginitsetinv(&current->blocked, 0);
    -
    - daemonize();
    - sprintf(current->comm, "ahd_dv_%d", ahd->unit);
    -#else
    daemonize("ahd_dv_%d", ahd->unit);
    -#endif
    + current->flags |= PF_IOTHREAD;
    unlock_kernel();

    while (1) {
    --- tmp/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-03-11 18:11:12.000000000 +0100
    +++ linux/drivers/scsi/aic7xxx/aic7xxx_osm.c 2004-04-01 19:01:08.000000000 +0200
    @@ -2286,17 +2286,8 @@
    * Complete thread creation.
    */
    lock_kernel();
    -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
    - /*
    - * Don't care about any signals.
    - */
    - siginitsetinv(&current->blocked, 0);
    -
    - daemonize();
    - sprintf(current->comm, "ahc_dv_%d", ahc->unit);
    -#else
    daemonize("ahc_dv_%d", ahc->unit);
    -#endif
    + current->flags |= PF_IOTHREAD;
    unlock_kernel();

    while (1) {

    --
    When do you have a heart between your knees?
    [Johanka's followup: and *two* hearts?]
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:02    [W:0.022 / U:155.828 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site