[1981] in linux-scsi channel archive
Re: scsi.c module patch
daemon@ATHENA.MIT.EDU (Leonard N. Zubkoff)
Wed Jun 11 19:59:25 1997
Date: Wed, 11 Jun 1997 16:56:44 -0700
From: "Leonard N. Zubkoff" <lnz@dandelion.com>
To: arcangeli@mbox.queen.it
CC: linux-scsi@vger.rutgers.edu
In-reply-to: <Pine.LNX.3.96.970612005333.857B-100000@arca.queen.it> (message
from Andrea Arcangeli on Thu, 12 Jun 1997 00:53:52 +0200 (CEST))
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
been, then there's a deeper underlying problem and this patch is just masking
the incorrect behavior.
Leonard