Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [BUG] scsi / genhd badness
@ 2002-10-28 15:20 christophe.varoqui
  2002-10-28 18:05 ` Mike Anderson
  0 siblings, 1 reply; 4+ messages in thread
From: christophe.varoqui @ 2002-10-28 15:20 UTC (permalink / raw)
  To: linux-scsi

Hello, 
 
I'd like to report an annoying behaviour : 
 
On a server with scsi disk behind an aic7xxx, kernel 2.5.44-ac4, each time I 
remove a disk from the linux scsi subsystem (echo "scsi remove-single-device a 
b c d">/proc/scsi/scsi) I get the following oops (server survive) : 
 
Badness in put_device at drivers/base/core.c:139 
Call Trace: 
 [<c01d12ae>] put_device+0xde/0xf0 
 [<c022c1ff>] sg_detach+0x8f/0x1f0 
 [<c02121d8>] proc_scsi_gen_write+0x338/0x4b0 
 [<c014d6c6>] open_namei+0xa6/0x400 
 [<c01658e0>] proc_file_write+0x40/0x50 
 [<c014047c>] vfs_write+0xdc/0x150 
 [<c014058e>] sys_write+0x3e/0x60 
 [<c010772b>] syscall_call+0x7/0xb 
 
the block event gets passed to the hotplug layer. 
Driverfs loose the $driverfs/bus/block/device/ (and $driverfs/root/) disk entry 
: right 
 
On the other hand, when I re-add this disk, hotplug is not notified and disk 
entry does not re-appear in driverfs. 
 
Other sybsystems are not similarily affected : device-mapper gives the oops on 
device map removal but devmap addition get rightly notified to userspace. 
 
Is it a known short-coming ? 
 
regards, 
cvaroqui 

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

end of thread, other threads:[~2002-10-29  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 15:20 [BUG] scsi / genhd badness christophe.varoqui
2002-10-28 18:05 ` Mike Anderson
2002-10-28 18:19   ` christophe varoqui
2002-10-29  8:23   ` christophe.varoqui

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