public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pedro Francisco <pedrogfrancisco@gmail.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: "Alejandro Riveira Fernández" <ariveira@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.35.4: sudo rmmod ahci @ 2.6.35.4 succeeds: filesystem access errors follow
Date: Wed, 8 Sep 2010 20:49:53 +0100	[thread overview]
Message-ID: <201009082049.54128.pedrogfrancisco@gmail.com> (raw)
In-Reply-To: <4C87D5E9.1060307@s5r6.in-berlin.de>

On Wednesday 08 September 2010 19:28:57 Stefan Richter wrote:
> Pedro Francisco wrote:
> > That makes no sense. That's what the force option "-f" is for. It's my
> > opinion the usage count for ahci on `lsmod' should be 1 and not 0.
> > Whoever still wants to remove it can use the `rmmod -f ahci'
> 
> The usage count of a module is only there to ensure that function calls
> into the module succeed.  As long as some other part of the kernel has a
> pointer of a function in the module, removal of the module needs to be
> prevented.
> 
> "rmmod ahci" on the other hand is something like pulling the SATA cable. 
> Or ejection of the controller from an ExpressCard slot.  The driver
> shutdown causes the controller device and thus its child devices (disk
> devices behind the controller) to go away, and that's it.  You can do also
> # echo $DEVICE_ID > /sys/module/ahci/drivers/pci\:ahci/unbind
> which tells the driver to let go of the controller.

Hum ok... Still I find it weird since on 2.6.32 I've, after `lsmod | grep -i 
ahci':
ahci                   32200  4
and on 2.6.35.4:
ahci                   32200  0

Why the change of behaviour? Is it because of the split of libahci from ahci ?

-- 
Pedro

      reply	other threads:[~2010-09-08 19:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07 17:34 2.6.35.4: sudo rmmod ahci @ 2.6.35.4 succeeds: filesystem access errors follow Pedro Francisco
2010-09-07 18:21 ` Alejandro Riveira Fernández
2010-09-07 21:47   ` Pedro Francisco
2010-09-08 18:28     ` Stefan Richter
2010-09-08 19:49       ` Pedro Francisco [this message]

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=201009082049.54128.pedrogfrancisco@gmail.com \
    --to=pedrogfrancisco@gmail.com \
    --cc=ariveira@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stefanr@s5r6.in-berlin.de \
    /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