From: Maneesh Soni <maneesh@in.ibm.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: axobe@in.ibm.com, Rusty <rusty@rustcorp.com.au>
Subject: rd.o module refcount problem
Date: Thu, 29 May 2003 15:55:10 +0530 [thread overview]
Message-ID: <20030529102510.GA1251@in.ibm.com> (raw)
The module ref count for rd.o module is not adjusted and remains 1 while doing
the following things.
[root@llm01 mod]# insmod /sdb/linux-2.5.70/drivers/block/rd.o
[root@llm01 mod]# lsmod
Module Size Used by
rd 5568 0 - Live 0xf88b5000
[root@llm01 mod]# mkfs -t ext2 /dev/ram0
.
.
[root@llm01 mod]# lsmod
Module Size Used by
rd 5568 1 - Live 0xf88b5000
mount/umount of /dev/ram0 does not change the rd.o module ref count.
So, who is supposed to release the rd.o module gracefully?
Also mount /dev/ram0 should hold a ref and umount should release the same.
Same test on 2.4.20 looks correct and mount increments the ref count and
umount decrements the ref count.
Regards,
Maneesh
--
Maneesh Soni
IBM Linux Technology Center,
IBM India Software Lab, Bangalore.
Phone: +91-80-5044999 email: maneesh@in.ibm.com
http://lse.sourceforge.net/
next reply other threads:[~2003-05-29 10:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-29 10:25 Maneesh Soni [this message]
2003-05-29 10:35 ` Russell King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030529102510.GA1251@in.ibm.com \
--to=maneesh@in.ibm.com \
--cc=axobe@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®