public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: andrew.vasquez@qlogic.com, Eric.Moore@lsil.com,
	linux-scsi@vger.kernel.org,
	James Bottomley <James.Bottomley@steeleye.com>
Subject: qla2300 & mptscsih refcount, or lack thereof
Date: Fri, 30 Dec 2005 15:50:30 -0800	[thread overview]
Message-ID: <20051230235030.GX18439@ca-server1.us.oracle.com> (raw)

Folks,
	I've run into an interesting problem.  The qla2300 and
mptspi drivers don't get refcounted for active users, but they are
absolutely required.  Thus, you can do, eg, "rmmod qla2300" with mounted
filesystems, and your system happily removes all child devices.
Hello, EIO!
	Now, I know we're well into "Doctor, it hurts when I do this,"
territory here.  But we generally try not to allow this sort of mistake.
You can't remove a network card while the interface is up, you can't
remove sd_mod while a disk is in use, etc.
	Has this been seen before?  Is there any plan to make qla2300
and mptspi respect the use count of the objects they present to the
system?  Thoughts?

Joel

-- 

Life's Little Instruction Book #222

	"Think twice before burdening a friend with a secret."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

             reply	other threads:[~2005-12-30 23:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-30 23:50 Joel Becker [this message]
2006-01-03 19:17 ` qla2300 & mptscsih refcount, or lack thereof Patrick Mansfield
2006-01-03 19:28   ` Andrew Vasquez
  -- strict thread matches above, loose matches on Subject: below --
2006-01-03 22:03 Moore, Eric

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=20051230235030.GX18439@ca-server1.us.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=Eric.Moore@lsil.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=andrew.vasquez@qlogic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox