All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Fw: 2.5.65 panic in remove_proc_entry() while trying to rmmod
Date: Sat, 22 Mar 2003 21:20:23 +1000	[thread overview]
Message-ID: <3E7C46F7.4030604@torque.net> (raw)
In-Reply-To: 20030321164855.598090d7.akpm@digeo.com

Andrew Morton wrote:
> Looks like removal on the scsi_deubg module causes some
> /proc entries to be removed twice.
> 
> 
> Begin forwarded message:
> 
> Date: Fri, 21 Mar 2003 10:36:35 -0800
> From: Badari Pulavarty <pbadari@us.ibm.com>
> To: linux-kernel@vger.kernel.org
> Cc: andrew <akpm@digeo.com>
> Subject: 2.5.65 panic in remove_proc_entry() while trying to rmmod
> 
> 
> Hi,
> 
> I get following panic while playing with scsi_debug.
> Any ideas on how to fix this ?

Andrew,
The scsi_debug driver doesn't do any procfs handling directly,
rather it uses scsi_register() and scsi_unregister()
[defined in the mid level] which seem to correctly
call helper functions in scsi_proc.c . This procfs
handling is in common with all other scsi LLDs.

Mike Anderson and I have been aware of two oops
scenarios with scsi_debug for about the last 10
versions of lk 2.5 . They are:
   1) a modprobe, rmmod, modprobe [scsi_debug] sequence
      oopses [in sysfs] on the second modprobe. A reason
      may be that the rmmod fails to remove the
      /sys/class/scsi-host and the /sys/bus/scsi subdirectories
      for the hosts and devices added by the first modprobe.
      This is 100% repeatable.
   2) rarely rmmod fails with the procfs oops reported.
      This typically happens on very large pseudo disk
      allocations by scsi_debug.

I traced scsi_debug's calls to sdebug_driver_probe()
and sdebug_driver_remove() that are wired into the
struct device_driver instance for scsi_debug and
they looked sane and balanced. [It wouldn't oops for
me but it has in the past.]

Doug Gilbert


      parent reply	other threads:[~2003-03-22 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-22  0:48 Fw: 2.5.65 panic in remove_proc_entry() while trying to rmmod Andrew Morton
2003-03-21 23:13 ` Mike Anderson
2003-03-22 11:20 ` Douglas Gilbert [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=3E7C46F7.4030604@torque.net \
    --to=dougg@torque.net \
    --cc=akpm@digeo.com \
    --cc=linux-scsi@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.