Bug 215709

Summary: Some modules have incorrect ref count after first use
Product: [Fedora] Fedora Reporter: vvs <vvs009>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-22 13:24:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vvs 2006-11-15 10:55:02 UTC
Description of problem:

Some kernel modules (e.g. loop, floppy, ide-cd) have incorrect ref count after
their first use, which prevent them from unloading.

Version-Release number of selected component (if applicable):

kernel-2.6.18-1.2849.fc6

How reproducible:

Always

Steps to Reproduce:
1. modprobe loop
2. lsmod
3. take note of ref count ("Used by"), should be zero
4. losetup /dev/loopx somefile (where loopx is free loop device)
5. losetup -d /dev/loopx
6. lsmod
  
Actual results:

The ref count is NOT zero

Expected results:

It should be zero

Additional info:

It's important that you do the above steps right after loading kernel module. It
may be necessary to modify modprobe.conf to make this module unavailable during
system boot and enable it later.

The same thing happens with floppy and ide-cd modules.