From: Jarkko Lavinen <jarkko.lavinen@nokia.com>
To: David Woodhouse <david.woodhouse@intel.com>
Cc: linux-mtd@lists.infradead.org, Maxim Levitsky <maximlevitsky@gmail.com>
Subject: Cannot rmmod after call to add_mtd_blktrans_dev
Date: Wed, 8 Sep 2010 15:20:39 +0300 [thread overview]
Message-ID: <20100908122039.GA25005@angel.research.nokia.com> (raw)
I am working with mtdswap driver which uses
add_mtd_blktrans_dev(). Once I call add_mtd_blktrans_dev() the
driver module reference count is 1 and I cannot remove the
module.
Before commit 048d871 (mtd: blktrans: Hotplug fixes) the module
ref count was 0 after loading. Ref count was increased only when
thedevice was opened and it was possible to remove the module if
none was using it.
After the 048d871 it doesn't seem to be possible to remove
drivers which use add_mtd_blktrans_dev(). Many drivers similar
to ftl have ftl_remove_dev() which calls del_mtd_blktrans_dev()
that would put the module but cannot be called unless the ref
count is already 0.
Jarkko Lavinen
next reply other threads:[~2010-09-08 12:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 12:20 Jarkko Lavinen [this message]
2010-09-08 14:43 ` Cannot rmmod after call to add_mtd_blktrans_dev Maxim Levitsky
2010-09-18 23:17 ` Maxim Levitsky
2010-09-28 8:24 ` Jarkko Lavinen
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=20100908122039.GA25005@angel.research.nokia.com \
--to=jarkko.lavinen@nokia.com \
--cc=david.woodhouse@intel.com \
--cc=linux-mtd@lists.infradead.org \
--cc=maximlevitsky@gmail.com \
/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