[1982] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: scsi.c module patch

daemon@ATHENA.MIT.EDU (Andrea Arcangeli)
Thu Jun 12 04:54:44 1997

Date: 	Thu, 12 Jun 1997 10:50:34 +0200 (CEST)
From: Andrea Arcangeli <arcangeli@mbox.queen.it>
To: "Leonard N. Zubkoff" <lnz@dandelion.com>
cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <199706112356.QAA12245@dandelion.com>

On Wed, 11 Jun 1997, Leonard N. Zubkoff wrote:

>  Date: 	Thu, 12 Jun 1997 00:53:52 +0200 (CEST)
>  From: Andrea Arcangeli <arcangeli@mbox.queen.it>
>
>  I have fixed the bug that causes my kernel to crash doing the script:
>
>  #!/bin/sh
>  while :; do
>  modprobe ppa
>  modprobe -r ppa
>  done
>
>  The crash was caused from the execution of the scsi_main_timeout function
>  by the SCSI_TIMER when the module was just cleared from memory.
>
>  So I have stopped the SCSI_TIMER before clear the module from memory. 
>
>Can you look into *why* the timer is still active?  There shouldn't be any
>active commands for the SCSI module when it is being unloaded, and hence the
>timer should already have been inactivated by update_timeout.  If it hasn't

Yes, but the problem cames when the SCSI_TIMER is programmed to run
update_timeout after insmod ppa and then I run rmmod scsi_mod before
update_timeout is run. rmmod set .fn = 0 and I get an Oops with
EIP=00000000.

>been, then there's a deeper underlying problem and this patch is just masking
>the incorrect behavior.

Please explain better.

Have you tryed to run the script with scsi_mod as module?

Andrea Arcangeli
arcangeli@mbox.queen.it

HomePage:      http://www.imola.queen.it/user/arcangeli/
Debian Mirror: ftp://dida43.deis.unibo.it/pub/debian/

Debian GNU
   __   _                __
  / /  (_)__  __ ____ __/ /
 / /__/ / _ \/ // /\ \ /_/
/____/_/_//_/\_,_//_\_(_)


home help back first fref pref prev next nref lref last post