lkml.org 
[lkml]   [2005]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] scsi_error thread exits in TASK_INTERRUPTIBLE state.

    Found in the -rt patch set. The scsi_error thread likely will be in the
    TASK_INTERRUPTIBLE state upon exit. This patch fixes this bug.

    -- Steve

    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

    Index: linux-2.6.14-rc4/drivers/scsi/scsi_error.c
    ===================================================================
    --- linux-2.6.14-rc4.orig/drivers/scsi/scsi_error.c 2005-10-19 03:37:55.000000000 -0400
    +++ linux-2.6.14-rc4/drivers/scsi/scsi_error.c 2005-10-19 03:38:59.000000000 -0400
    @@ -1645,6 +1645,12 @@
    set_current_state(TASK_INTERRUPTIBLE);
    }

    + /*
    + * There's a good chance that the loop will exit in the
    + * TASK_INTERRUPTIBLE state.
    + */
    + __set_current_state(TASK_RUNNING);
    +
    SCSI_LOG_ERROR_RECOVERY(1, printk("Error handler scsi_eh_%d"
    " exiting\n",shost->host_no));

    -
    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-10-19 09:58    [W:0.020 / U:59.292 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site