mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mikael Pettersson <mikpe@csd.uu.se>
To: linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: 2.6.0-test6 module autoloading and reference counting broken?
Date: Fri, 3 Oct 2003 14:30:52 +0200	[thread overview]
Message-ID: <16253.27644.578089.345998@gargle.gargle.HOWL> (raw)

FYI,

I'm seeing incorrect reference counting behaviour and module
loading semi-failures in 2.6.0-test6.

I have a misc char driver module which announces an alias
via a MODULE_ALIAS("char-major-10-<nnn>") declaration.

The first attempt by user-space to open the device node fails
with ENODEV. However, afterwards the module _is_ loaded and its
use count is 1 even though the user-space open() failed.

Subsequent open()s succeed, but since the reference count is
one too high, I can't unload the module.

If I instead manually insmod or modprobe the module before the
first device node open(), the module's use count is correct and
I can unload it after the last open()ed file goes away.

CONFIG_KMOD is set, module-init-tools is 0.9.14.

I'll keep digging...

/Mikael

             reply	other threads:[~2003-10-03 12:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-03 12:30 Mikael Pettersson [this message]
2003-10-10  5:25 ` Rusty Russell
2003-10-11  9:56 Mikael Pettersson

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=16253.27644.578089.345998@gargle.gargle.HOWL \
    --to=mikpe@csd.uu.se \
    --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®