All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <luben@splentec.com>
To: Patrick Mansfield <patmans@us.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] SCSI Core cmd allocation 3/3
Date: Mon, 13 Jan 2003 15:40:09 -0500	[thread overview]
Message-ID: <3E232429.3090300@splentec.com> (raw)
In-Reply-To: 20030113121129.A16510@beaverton.ibm.com

Patrick Mansfield wrote:
> On Mon, Jan 13, 2003 at 02:16:48PM -0500, Luben Tuikov wrote:
> 
>>Christoph Hellwig wrote:
>>
>>>Well, where do you actually _need_ scsi_get_command(), that's the question.
>>>
>>>I see the purpose, but I don't see it actually used.
>>
>>The scsi devices discovery code *may* use it.
> 
> 
> Then do so in another patch.

You're talking to the wrong person.  Someone else is/was working on
the scsi discovery code.  Furthermore scsi discovery code will evolve
more, and eventually I see SCSI Core as a two-part subsystem:
scsi queuing (I'm trying to find out if it's worth it), and
scsi target discovering.  Scsi queuing will be quite tiny, and
scsi target discovering --- someone else will do.

> 
>>If a global variable is used in a couple of files, belonging
>>to the same functionality, providing a unified service, and if
>>there's more than one of them, then they are better organized
>>as such as I've outlined.
> 
> 
> Then move all the scsi globals into it. But, that should be a separate
> patch.

Right, it should be in a separate patch, but I did not want to do this job.

I just prompted the idea, and left it for the rest of the SCSI Core
developers to slowly (with each patch) move things therein.

> You should match the other kernel code as much as possible, it makes it
> easier for other kernel developers to read it.

Let's not make a career move out of 2 lines of code in an inline
function. It's not like my code uses GNU-style -- this is what you
make it sound like. Don't forget, it's just 2 lines and I was merely
trying to save macro space -- we don't need 100K line macro files.

Now let's get some work done.

-- 
Luben



      reply	other threads:[~2003-01-13 20:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-07  0:37 [PATCH] SCSI Core cmd allocation 3/3 Luben Tuikov
2003-01-11 18:03 ` Christoph Hellwig
2003-01-13 17:12   ` Luben Tuikov
2003-01-13 17:59     ` Christoph Hellwig
2003-01-13 19:16       ` Luben Tuikov
2003-01-13 20:11         ` Patrick Mansfield
2003-01-13 20:40           ` Luben Tuikov [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=3E232429.3090300@splentec.com \
    --to=luben@splentec.com \
    --cc=hch@infradead.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=patmans@us.ibm.com \
    /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.