From: Mike Anderson <andmike@us.ibm.com>
To: Christoph Hellwig <hch@lst.de>
Cc: James Bottomley <James.Bottomley@steeleye.com>,
axboe@suse.dk, linux-scsi@vger.kernel.org
Subject: Re: [PATCH][RFC] get rid of global array and ->init in sd.c and sr.c
Date: Wed, 23 Oct 2002 10:17:29 -0700 [thread overview]
Message-ID: <20021023171729.GA1048@beaverton.ibm.com> (raw)
In-Reply-To: <20021023171131.A17312@lst.de>
Christoph Hellwig [hch@lst.de] wrote:
> On Wed, Oct 23, 2002 at 01:28:53AM -0700, Mike Anderson wrote:
> > Looks good. I ran it on a system with ips, aic, scsi_debug and qla2x00
> > as a module.
> >
> > When I applied the patch I got a quite a few rejects on sd.c and sr.c. I
> > fixed up sd.c, but did not run sr.c. My view is based off James
> > scsi-misc-2.5.
> >
> > I noticed the patch seems to include some of your driver_register
> > removals (preiously posted) in init_sd and exit_sd, but there are no
> > adds to scsi_register_device or scsi_unregister_device.
>
> The patch is again 2.5.44 + my previous two patch (devicefs stuff
> and ->finish removal).
ok. Sorry I did not comment on that previous device model cleanup. I do
have a couple comments now though.
In scsi_register_device (which we should probably rename to
scsi_bus_register_driver) we could just call
driver_register(&tpnt->scsi_driverfs_driver).
In the upper levels just do something like this:
.
.
.
.init_command = sd_init_command,
.scsi_driverfs_driver {
.name = "sd",
.bus = &scsi_driverfs_bus_type,
.probe = sd_probe,
.remove = sd_remove, },
We can also remove .tag from the template.
This gives more flexibility to the upper levels in-case they need to add
to there driver template.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2002-10-23 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 19:07 [PATCH][RFC] get rid of global array and ->init in sd.c and sr.c Christoph Hellwig
2002-10-23 8:28 ` Mike Anderson
2002-10-23 15:11 ` Christoph Hellwig
2002-10-23 17:17 ` Mike Anderson [this message]
2002-10-24 0:50 ` Christoph Hellwig
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=20021023171729.GA1048@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=James.Bottomley@steeleye.com \
--cc=axboe@suse.dk \
--cc=hch@lst.de \
--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;
as well as URLs for NNTP newsgroup(s).