public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* sbp2: modprobe -r fails, module allegedly in use
@ 2005-07-10 14:42 Stefan Richter
  2005-07-10 15:07 ` Stefan Richter
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Stefan Richter @ 2005-07-10 14:42 UTC (permalink / raw)
  To: linux-scsi, linux1394-devel; +Cc: Ben Collins

Hi all,

it seems the sbp2 driver module can never be unloaded because the
module "is in use" even though all SBP-2 devices were physically removed
(after umount etc.). I believe it is an old problem of the last few 2.6
kernels but am not sure when it was really introduced.

One thing can easily be spotted by "ps x": The scsi_error_handler of an
SBP-2 device does not exit. The /sys/bus/scsi/devices/$a:$b:$c:$d 
vanished, the /sys/bus/ieee1394/devices/$guid-$unit too, but the 
scsi_eh_# daemon is still there. It seems shost->shost_gendev.release 
was never called.

So I just added a few more scsi_host_put() to sbp2_remove_device(). 
scsi_eh_# now goes away when I disconnect the device. Still, modprobe -r 
sbp2 fails with "FATAL: Module sbp2 is in use.".
-- 
Stefan Richter
-=====-=-=-= -=== -=-=-
http://arcgraph.de/sr/


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

end of thread, other threads:[~2005-07-10 17:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10 14:42 sbp2: modprobe -r fails, module allegedly in use Stefan Richter
2005-07-10 15:07 ` Stefan Richter
2005-07-10 15:31 ` Ben Collins
2005-07-10 17:40   ` Christoph Hellwig
2005-07-10 17:46     ` Ben Collins
2005-07-10 17:49       ` Christoph Hellwig
2005-07-10 17:52         ` Ben Collins
2005-07-10 17:29 ` James Bottomley
2005-07-10 17:37   ` Ben Collins
2005-07-10 17:51     ` Stefan Richter

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