mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* rd.o module refcount problem
@ 2003-05-29 10:25 Maneesh Soni
  2003-05-29 10:35 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Maneesh Soni @ 2003-05-29 10:25 UTC (permalink / raw)
  To: LKML; +Cc: axobe, Rusty


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/

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

end of thread, other threads:[~2003-05-29 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-29 10:25 rd.o module refcount problem Maneesh Soni
2003-05-29 10:35 ` Russell King

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®