Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751571AbVJSHzP (ORCPT ); Wed, 19 Oct 2005 03:55:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751568AbVJSHzP (ORCPT ); Wed, 19 Oct 2005 03:55:15 -0400 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:65424 "EHLO ms-smtp-03.nyroc.rr.com") by vger.kernel.org with ESMTP id S1750910AbVJSHzN (ORCPT ); Wed, 19 Oct 2005 03:55:13 -0400 Date: Wed, 19 Oct 2005 03:54:48 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@localhost.localdomain To: Lee Revell cc: Mark Knecht , linux-kernel@vger.kernel.org, Ingo Molnar , rmk@arm.linux.org.uk, Linus Torvalds , Andrew Morton , andmike@us.ibm.com, linux-scsi@vger.kernel.org Subject: [PATCH] scsi_error thread exits in TASK_INTERRUPTIBLE state. In-Reply-To: Message-ID: References: <5bdc1c8b0510181402o2d9badb0sd18012cf7ff2a329@mail.gmail.com> <1129693423.8910.54.camel@mindpipe> <1129695564.8910.64.camel@mindpipe> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 31 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 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/