From: Maxim Levitsky <maximlevitsky@gmail.com>
To: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Cc: linux-mtd@lists.infradead.org,
David Woodhouse <david.woodhouse@intel.com>
Subject: Re: Cannot rmmod after call to add_mtd_blktrans_dev
Date: Wed, 08 Sep 2010 17:43:27 +0300 [thread overview]
Message-ID: <1283957007.7935.0.camel@maxim-laptop> (raw)
In-Reply-To: <20100908122039.GA25005@angel.research.nokia.com>
On Wed, 2010-09-08 at 15:20 +0300, Jarkko Lavinen wrote:
> 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
My fault, I take a good look at how to fix that differently.
Best regards,
Maxim Levitsky
next prev parent reply other threads:[~2010-09-08 14:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 12:20 Cannot rmmod after call to add_mtd_blktrans_dev Jarkko Lavinen
2010-09-08 14:43 ` Maxim Levitsky [this message]
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=1283957007.7935.0.camel@maxim-laptop \
--to=maximlevitsky@gmail.com \
--cc=david.woodhouse@intel.com \
--cc=jarkko.lavinen@nokia.com \
--cc=linux-mtd@lists.infradead.org \
/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