public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2/5] scsi_error thread exits in TASK_INTERRUPTIBLE state.
@ 2005-10-28 22:07 akpm
  2005-10-28 22:21 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2005-10-28 22:07 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, rostedt


From: Steven Rostedt <rostedt@goodmis.org>

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.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/scsi/scsi_error.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state drivers/scsi/scsi_error.c
--- 25/drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state	Fri Oct 28 15:06:03 2005
+++ 25-akpm/drivers/scsi/scsi_error.c	Fri Oct 28 15:06:03 2005
@@ -1644,6 +1644,7 @@ int scsi_error_handler(void *data)
 		scsi_restart_operations(shost);
 		set_current_state(TASK_INTERRUPTIBLE);
 	}
+	__set_current_state(TASK_RUNNING);
 
 	__set_current_state(TASK_RUNNING);
 
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 2/5] scsi_error thread exits in TASK_INTERRUPTIBLE state.
  2005-10-28 22:07 [patch 2/5] scsi_error thread exits in TASK_INTERRUPTIBLE state akpm
@ 2005-10-28 22:21 ` James Bottomley
  2005-10-28 22:28   ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2005-10-28 22:21 UTC (permalink / raw)
  To: akpm; +Cc: linux-scsi, rostedt

On Fri, 2005-10-28 at 15:07 -0700, akpm@osdl.org wrote:
> From: Steven Rostedt <rostedt@goodmis.org>
> 
> 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.
> 
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> Cc: James Bottomley <James.Bottomley@steeleye.com>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> ---
> 
>  drivers/scsi/scsi_error.c |    1 +
>  1 files changed, 1 insertion(+)
> 
> diff -puN drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state drivers/scsi/scsi_error.c
> --- 25/drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state	Fri Oct 28 15:06:03 2005
> +++ 25-akpm/drivers/scsi/scsi_error.c	Fri Oct 28 15:06:03 2005
> @@ -1644,6 +1644,7 @@ int scsi_error_handler(void *data)
>  		scsi_restart_operations(shost);
>  		set_current_state(TASK_INTERRUPTIBLE);
>  	}
> +	__set_current_state(TASK_RUNNING);
^^^^^^^^^^^^^^^^^^^^^
>  	__set_current_state(TASK_RUNNING);
^^^^^^^^^^^^^^^^^^^^^

Mismerge, I think (of a patch which is already present)

James



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch 2/5] scsi_error thread exits in TASK_INTERRUPTIBLE state.
  2005-10-28 22:21 ` James Bottomley
@ 2005-10-28 22:28   ` Steven Rostedt
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Rostedt @ 2005-10-28 22:28 UTC (permalink / raw)
  To: James Bottomley; +Cc: akpm, linux-scsi

On Fri, 2005-10-28 at 17:21 -0500, James Bottomley wrote:
> On Fri, 2005-10-28 at 15:07 -0700, akpm@osdl.org wrote:
> > From: Steven Rostedt <rostedt@goodmis.org>
> > 
> > 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.
> > 
> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> > Cc: James Bottomley <James.Bottomley@steeleye.com>
> > Signed-off-by: Andrew Morton <akpm@osdl.org>
> > ---
> > 
> >  drivers/scsi/scsi_error.c |    1 +
> >  1 files changed, 1 insertion(+)
> > 
> > diff -puN drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state drivers/scsi/scsi_error.c
> > --- 25/drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state	Fri Oct 28 15:06:03 2005
> > +++ 25-akpm/drivers/scsi/scsi_error.c	Fri Oct 28 15:06:03 2005
> > @@ -1644,6 +1644,7 @@ int scsi_error_handler(void *data)
> >  		scsi_restart_operations(shost);
> >  		set_current_state(TASK_INTERRUPTIBLE);
> >  	}
> > +	__set_current_state(TASK_RUNNING);
> ^^^^^^^^^^^^^^^^^^^^^
> >  	__set_current_state(TASK_RUNNING);
> ^^^^^^^^^^^^^^^^^^^^^
> 
> Mismerge, I think (of a patch which is already present)

Yeah, I noticed that Linus pulled it into the 2.6.14 release, since it
was a small minor fix. So this can be dropped.

-- Steve



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-10-28 22:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 22:07 [patch 2/5] scsi_error thread exits in TASK_INTERRUPTIBLE state akpm
2005-10-28 22:21 ` James Bottomley
2005-10-28 22:28   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox