Bug 9271 - Remove floppy module freeze
Summary: Remove floppy module freeze
Status: CLOSED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Modules (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_modules
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 04:11 UTC by Aldo Reset
Modified: 2007-12-01 15:43 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.18
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Aldo Reset 2007-11-01 04:11:44 UTC
Most recent kernel where this bug did not occur:
Distribution: debian etch
Hardware Environment:  P8SC8 (Supermicro)
Software Environment: Gnu Linux
Problem Description: No floppy on harware, but floppy module is still loaded and when remove session freeze (not server) and impossible to kill process.

Steps to reproduce: In bios diabled floppy, boot debian etch. 
lsmod
...
serio_raw               7428  0 
floppy                 51684  0 
shpchp                 33632  0 
...
modprobe -r floppy
session freeze....
connect with an other session kill -9 process of modprobe -r floppy nothing append.
Comment 1 Aldo Reset 2007-11-01 04:12:49 UTC
seems to do the same on other hardawre plateform.
Comment 2 Andrew Morton 2007-11-01 10:42:48 UTC
I think we fixed this in later kernels, not sure.  Are you able to
test 2.6.23?
Comment 3 Aldo Reset 2007-11-01 11:55:49 UTC
i will check with kernel 2.6.23.1 soon. (next monday).
Comment 4 Randy Dunlap 2007-11-04 20:04:00 UTC
2.6.24-rc1 works for me.  I loaded/unloaded floppy.ko 10 times.  4 of those
times included mounting, ls -l, unmounting /dev/fd0 also.
Comment 5 Ingo Molnar 2007-11-30 06:29:45 UTC
Randy, have you tried the unload with the floppy hw disabled in the BIOS?

I'm closing this bug as fixed - Aldo, please re-open it if you can still see problems. If such a freeze happens then please turn on CONFIG_MAGIC_SYSRQ and do this:

   echo t > /proc/sysrq-trigger

and attach the resulting dmesg output.
Comment 6 Randy Dunlap 2007-11-30 09:26:59 UTC
Nope, hadn't even thought about that. :(  I'll try to do that.
Comment 7 Randy Dunlap 2007-12-01 15:43:15 UTC
Tested 2.6.24-rc1 (same as my previous testing) with floppy device disabled
in BIOS.  Loaded floppy driver module 9 times with no system hangs or oopses,
just the floppy driver printing that no floppy controllers were found:

[  234.878789] floppy0: no floppy controllers found
[  250.303809] floppy0: no floppy controllers found
[  254.795949] floppy0: no floppy controllers found
[  258.499853] floppy0: no floppy controllers found
[  262.280683] floppy0: no floppy controllers found
[  268.334803] floppy0: no floppy controllers found
[  272.378378] floppy0: no floppy controllers found
[  276.115250] floppy0: no floppy controllers found
[  279.739230] floppy0: no floppy controllers found

Note You need to log in before you can comment on or make changes to this bug.