From: Christoph Hellwig <hch@infradead.org>
To: Olaf Kirch <okir@lst.de>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] fill in scsi_host_template module owner
Date: Wed, 2 May 2007 09:37:07 +0100 [thread overview]
Message-ID: <20070502083707.GA24804@infradead.org> (raw)
In-Reply-To: <200705021007.44764.okir@lst.de>
[please don't remove me from the To: or Cc: line, please - I tend
to read personal email much faster than list traffic, and it's the
normal policy for most kernel development lists these days]
On Wed, May 02, 2007 at 10:07:43AM +0200, Olaf Kirch wrote:
> On Monday 30 April 2007 18:02, Christoph Hellwig wrote:
> > - a driver should handle hot unplugs proper, even if THIS_MODULE
> > is set this can happen if the hardware just goes away.
>
> In the case of the iscsi bug I looked at, it wasn't so much the
> hardware going away, it was the rmmod that was kind of hurtful ;)
In the iscsi case this is true as it's not a traditional driver
with a ->remove method that is called on a hot unplug. Every pci
or usb driver needs to handle hot removal, though. And yes, I expect
a lot of lingering bug in those areas outside of the few drivers used
on modern highend systems.
> I also thought about adding something like this to
> scsi_add_host:
>
> + if (sht->module == NULL && sht->queuecommand &&
> + !core_kernel_text((unsigned long) sht->queuecommand))
> + printk(KERN_ERR "%s: didn't set module owner field\n", sht->name);
>
> But maybe that's overdoing things a little.
->queuecommand is also mandatory, so you could remove the check for it
beeing present, but I think this is really overding things a little.
next prev parent reply other threads:[~2007-05-02 8:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-30 14:53 [PATCH] fill in scsi_host_template module owner Olaf Kirch
2007-04-30 16:02 ` Christoph Hellwig
2007-05-02 8:07 ` Olaf Kirch
2007-05-02 8:37 ` Christoph Hellwig [this message]
2007-05-07 18:25 ` Mike Christie
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=20070502083707.GA24804@infradead.org \
--to=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
--cc=okir@lst.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